DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th June 2016
darktrym's Avatar
darktrym darktrym is offline
standard-bearer
 
Join Date: Feb 2011
Location: Düsseldorf
Posts: 106
Default Why doesn't use pkgsrc the right makefile?

I wrote a small build receipt for a github project. When i start the build process i get the message that make doesn't know how to make all. But in WRKSRC directory i can call make without problems.
Attached Files
File Type: zip raw.zip (1.2 KB, 131 views)
Reply With Quote
  #2   (View Single Post)  
Old 11th June 2016
schnoebe schnoebe is offline
Real Name: Eric Schnoebelen
old timer
 
Join Date: Feb 2016
Location: Plano, TX, US
Posts: 33
Default

Does the project Makefile have an "all:" target??
Reply With Quote
  #3   (View Single Post)  
Old 11th June 2016
schnoebe schnoebe is offline
Real Name: Eric Schnoebelen
old timer
 
Join Date: Feb 2016
Location: Plano, TX, US
Posts: 33
Default

After downloading the zip file, and attempting to configure, I see that the projects Makefile does lack an "all:" target.

Its first target (which is what [g]make will use) is "game:".

Add a 'BUILD_TARGET= game' to your Makefile.
Reply With Quote
  #4   (View Single Post)  
Old 12th June 2016
darktrym's Avatar
darktrym darktrym is offline
standard-bearer
 
Join Date: Feb 2011
Location: Düsseldorf
Posts: 106
Default

Thanks for your hint. This github project lacks on so many places. Also the install rule is missing, how i overload the install rule. I think only game must be copied.
Reply With Quote
  #5   (View Single Post)  
Old 12th June 2016
schnoebe schnoebe is offline
Real Name: Eric Schnoebelen
old timer
 
Join Date: Feb 2016
Location: Plano, TX, US
Posts: 33
Default

According the PKGSRC documentation (doc/pkgsrc.txt), you can override any target by writing adding a "do_<target>" target to your pkgsrc package Makefile.

You can also amend any target in the pkgsrc Makefile by adding "pre-<target>" to have something happen before the standard target, and a "post-<target>" to have something happen after the target.
Reply With Quote
  #6   (View Single Post)  
Old 7th December 2016
darktrym's Avatar
darktrym darktrym is offline
standard-bearer
 
Join Date: Feb 2011
Location: Düsseldorf
Posts: 106
Default

Now with more knowledge and experience I refactored my package description(wip/raw). But something is strange, the given Distname is truncated by Pkgsrc so the request to Gitub returns a 404. Instead of Another-World-Bytecode-Interpreter only Another-World-Bytecode is used? Any ideas?

EDIT: The workaround is to add a dummy dash random name and voila, the download start.
__________________
NetBSD 8.99.25(AMD64)@Xiaomi Air 1.Gen

Last edited by darktrym; 11th December 2016 at 03:23 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which is the significance about pkgsrc-2009Q2 and pkgsrc-2009Q3? aleunix NetBSD Package System (pkgsrc) 3 16th December 2009 07:19 AM
${REINPLACE_CMD} on Makefile indiocolifa FreeBSD Ports and Packages 3 26th March 2009 11:16 PM
Makefile Problem BadWolf Programming 4 15th March 2009 01:58 PM
ports config and makefile scripting boincv FreeBSD Ports and Packages 6 1st October 2008 07:57 AM
Change Makefile options in ports shep FreeBSD Ports and Packages 5 18th August 2008 07:58 AM


All times are GMT. The time now is 01:23 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick