May 5 2007, 07:04 PM
Post
#1
|
|
![]() Group: Members Posts: 2,350 Joined: 30-July 06 Member No.: 10,575 |
How do you package an app up if "grep DESTDIR Makefile" returns nothing?
|
|
|
|
![]() |
May 5 2007, 11:25 PM
Post
#2
|
|
|
Group: Members Posts: 138 Joined: 12-February 04 Member No.: 1,830 |
|
|
|
|
May 6 2007, 06:50 AM
Post
#3
|
|
![]() Group: Members Posts: 2,350 Joined: 30-July 06 Member No.: 10,575 |
QUOTE(danr @ May 6 2007, 02:25 AM) QUOTE(Capn_Fish @ May 6 2007, 03:04 AM) You could search the Makefile for 'prefix' or '/usr', and change to $PWD/ipkg/usr or something similar. Doesn't that lead to issues apon installation on the ipk? |
|
|
|
May 6 2007, 03:08 PM
Post
#4
|
|
|
Group: Members Posts: 742 Joined: 15-October 05 From: Gulag, Siberia Member No.: 8,322 |
QUOTE(Capn_Fish @ May 6 2007, 02:50 PM) QUOTE(danr @ May 6 2007, 02:25 AM) You could search the Makefile for 'prefix' or '/usr', and change to $PWD/ipkg/usr or something similar. Doesn't that lead to issues apon installation on the ipk? I think if you add the $PWD after have you done "make" and just before you do "make install" it should be OK? Otherwise find the "install" section of the Makefile and add DESTDIR manually. Eg here's one for zlib: CODE install: $(LIBS) -@if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi -@if [ ! -d $(DESTDIR)$(includedir) ]; then mkdir -p $(DESTDIR)$(includedir); fi -@if [ ! -d $(DESTDIR)$(libdir) ]; then mkdir -p $(DESTDIR)$(libdir); fi -@if [ ! -d $(DESTDIR)$(man3dir) ]; then mkdir -p $(DESTDIR)$(man3dir); fi cp zlib.h zconf.h $(DESTDIR)$(includedir) chmod 644 $(DESTDIR)$(includedir)/zlib.h $(DESTDIR)$(includedir)/zconf.h cp $(LIBS) $(DESTDIR)$(libdir) cd $(DESTDIR)$(libdir); chmod 755 $(LIBS) -@(cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1 cd $(DESTDIR)$(libdir); if test -f $(SHAREDLIBV); then \ rm -f $(SHAREDLIB) $(SHAREDLIBM); \ ln -s $(SHAREDLIBV) $(SHAREDLIB); \ ln -s $(SHAREDLIBV) $(SHAREDLIBM); \ (ldconfig || true) >/dev/null 2>&1; \ fi cp zlib.3 $(DESTDIR)$(man3dir) chmod 644 $(DESTDIR)$(man3dir)/zlib.3 QUOTE Do I need to edit all of the makefiles Normally you should only need to edit main Makefile, the ones in subdirectories usually defer "install" to that main Makefile. In fact I don't recall any application that required editing makefiles in the subdirectories.
|
|
|
|
Capn_Fish What Do You Do If There's No Destdir Option? May 5 2007, 07:04 PM
danr QUOTE(Capn_Fish @ May 6 2007, 02:50 PM)QUOTE(... May 6 2007, 09:03 AM

Capn_Fish QUOTE(danr @ May 6 2007, 12:03 PM)QUOTE(Capn_... May 6 2007, 09:51 AM
Meanie QUOTE(Capn_Fish @ May 6 2007, 01:04 PM)How do... May 6 2007, 07:09 AM
Capn_Fish Nope. May 6 2007, 07:16 AM
Capn_Fish Sorry if I'm being thick, but I don't see ... May 6 2007, 03:23 PM
desertrat QUOTE(Capn_Fish @ May 6 2007, 11:23 PM)Sorry ... May 6 2007, 10:25 PM
Capn_Fish I'm going to need to install it anyway, so no ... May 7 2007, 03:42 AM
ShiroiKuma What I do, when faced with a prog that doesn't... May 7 2007, 04:55 AM
Meanie QUOTE(ShiroiKuma @ May 7 2007, 10:55 PM)What ... May 7 2007, 05:04 AM
ShiroiKuma Well, I use emacs for most stuff, so I'm alway... May 7 2007, 05:17 AM
Capn_Fish QUOTE(Meanie @ May 7 2007, 08:04 AM)oh and do... May 7 2007, 10:08 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 23rd May 2013 - 09:43 PM |