Changeset 79879
- Timestamp:
- 06/28/11 18:51:38 (4 years ago)
- Location:
- trunk/dports/devel/libnewt
- Files:
-
- 1 deleted
- 3 edited
-
Portfile (modified) (3 diffs)
-
files/patch-Makefile.in.diff (modified) (1 diff)
-
files/patch-configure.ac.diff (modified) (1 diff)
-
files/patch-whiptail.c.diff (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/devel/libnewt/Portfile
r76856 r79879 5 5 6 6 name libnewt 7 version 0.52.12 8 revision 1 7 version 0.52.13 9 8 categories devel 10 9 platforms darwin … … 26 25 distname newt-${version} 27 26 28 checksums sha1 6952115806c7b1dbc36858eb4ca0596b235cf6f4\29 rmd160 0d34b278e72c1b1305fc110e491e3bc96b42a37427 checksums sha1 0891ad749560ea6071edd734a080c9d172d0da0e \ 28 rmd160 c43d9b3acd800ba3590c85e9854ad7b7c8e9b34b 30 29 31 30 depends_lib port:gettext \ … … 35 34 36 35 patchfiles patch-Makefile.in.diff \ 37 patch-configure.ac.diff \ 38 patch-whiptail.c.diff 36 patch-configure.ac.diff 39 37 40 38 use_autoreconf yes 39 40 # It can't find tclConfig.sh unless libdir is expanded 41 configure.args --without-python \ 42 --libdir=${prefix}/lib 41 43 42 44 destroot.destdir instroot=${destroot} -
trunk/dports/devel/libnewt/files/patch-Makefile.in.diff
r76856 r79879 1 --- Makefile.in.orig 2011-03-11 00:53:35.000000000 +0100 2 +++ Makefile.in 2011-03-11 00:57:11.000000000 +0100 3 @@ -1,12 +1,13 @@ 4 LIBS = -lslang 5 -LIBTCL = -ltcl8.4 6 +LIBTCL = -ltcl8.5 7 8 CC = @CC@ 1 --- Makefile.in.orig 2011-06-27 07:24:04.000000000 -0500 2 +++ Makefile.in 2011-06-28 18:58:35.000000000 -0500 3 @@ -5,7 +5,7 @@ 9 4 CPP = @CPP@ 10 5 CFLAGS = @CFLAGS@ 6 LDFLAGS = @LDFLAGS@ 11 7 -CPPFLAGS = -D_GNU_SOURCE -I/usr/include/slang @CPPFLAGS@ 12 +LDFLAGS = @LDFLAGS@13 8 +CPPFLAGS = -D_GNU_SOURCE @CPPFLAGS@ 14 +GNU_LD = @GNU_LD@9 GNU_LD = @GNU_LD@ 15 10 16 -SHLIBFLAGS= -Wl,--version-script,newt.0.52.ver17 11 VERSION = @VERSION@ 18 TAG = r$(subst .,-,$(VERSION)) 19 SONAME = @SONAME@ 20 @@ -25,6 +26,8 @@ 21 scrollbar.o textbox.o scale.o grid.o windows.o buttonbar.o \ 22 checkboxtree.o 12 @@ -29,7 +29,7 @@ 13 ifneq ($(GNU_LD),) 14 SHLIBFLAGS= -Wl,--version-script,newt.0.52.ver -Wl,-soname,$(LIBNEWTSONAME) 15 else 16 -SHLIBFLAGS= 17 +SHLIBFLAGS= -install_name $(libdir)/$(LIBNEWTSH) 18 endif 23 19 24 +SHLIBFLAGS= -install_name $(libdir)/$(LIBNEWTSH)25 +26 20 SHCFLAGS = -fPIC 27 28 prefix = @prefix@29 @@ -33,6 +36,7 @@30 libdir = @libdir@31 bindir = @bindir@32 datadir = @datadir@33 +datarootdir = @datarootdir@34 mandir = @mandir@35 man1dir = $(mandir)/man136 pkgconfigdir = $(libdir)/pkgconfig37 @@ -53,33 +57,37 @@38 all: $(TARGET) _snackmodule.so39 40 test: test.o $(LIBNEWT)41 - $(CC) -g -o test test.o $(LIBNEWT) $(LIBS)42 + $(CC) -g -o test test.o $(LIBNEWT) $(LDFLAGS) $(LIBS)43 44 testgrid: testgrid.o $(LIBNEWT)45 - $(CC) -g -o testgrid testgrid.o $(LIBNEWT) $(LIBS)46 + $(CC) -g -o testgrid testgrid.o $(LIBNEWT) $(LDFLAGS) $(LIBS)47 48 testtree: testtree.o $(LIBNEWT)49 - $(CC) -g -o testtree testtree.o $(LIBNEWT) $(LIBS)50 + $(CC) -g -o testtree testtree.o $(LIBNEWT) $(LDFLAGS) $(LIBS)51 52 showchars: showchars.o $(LIBNEWT)53 - $(CC) -g -o showchars showchars.o $(LIBNEWT) $(LIBS)54 + $(CC) -g -o showchars showchars.o $(LIBNEWT) $(LDFLAGS) $(LIBS)55 56 showkey: showkey.o $(LIBNEWT)57 - $(CC) -g -o showkey showkey.o $(LIBNEWT) $(LIBS)58 + $(CC) -g -o showkey showkey.o $(LIBNEWT) $(LDFLAGS) $(LIBS)59 60 _snackmodule.so: snackmodule.c $(LIBNEWTSH)61 for ver in $(PYTHONVERS) ; do \62 mkdir -p $$ver ;\63 - $(CC) $(CFLAGS) -I/usr/include/$$ver $(SHCFLAGS) -c -o $$ver/snackmodule.o snackmodule.c ;\64 - $(CC) --shared $(SHCFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L . -lnewt ;\65 + PCFLAGS=`$$ver-config --cflags`; \66 + PIFLAGS=`$$ver-config --includes`; \67 + PLDFLAGS=`$$ver-config --ldflags`; \68 + PLFLAGS=`$$ver-config --libs`; \69 + $(CC) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snackmodule.o snackmodule.c ;\70 + $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L. -lnewt -lintl ;\71 done72 touch $@73 74 whiptail: $(NDIALOGOBJS) $(LIBNEWTSH)75 - $(CC) -g -o whiptail $(NDIALOGOBJS) -L . -lnewt $(LIBS) -lpopt76 + $(CC) -g -o whiptail $(NDIALOGOBJS) -L. $(LDFLAGS) -lnewt $(LIBS) -lpopt -lintl77 78 whiptcl.so: $(WHIPTCLOBJS) $(LIBNEWTSH)79 - $(CC) -shared $(SHCFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L . -lnewt $(LIBTCL) -lpopt80 + $(CC) -shared $(SHCFLAGS) $(LDFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L. -lnewt $(LIBS) $(LIBTCL) -lpopt -lintl81 82 $(LIBNEWT): $(LIBOBJS)83 ar rv $@ $^84 @@ -102,7 +110,7 @@85 sharedlib: $(LIBNEWTSH)86 87 $(LIBNEWTSH): $(SHAREDDIR) $(SHAREDOBJS)88 - $(CC) -shared -o $(LIBNEWTSH) $(SHLIBFLAGS) -Wl,-soname,$(LIBNEWTSONAME) $(SHAREDOBJS) $(LIBS)89 + $(CC) -shared -o $(LIBNEWTSH) $(SHLIBFLAGS) $(SHAREDOBJS) $(LDFLAGS) $(LIBS)90 ln -fs $(LIBNEWTSONAME) libnewt.so91 ln -fs $(LIBNEWTSH) $(LIBNEWTSONAME)92 93 @@ -119,7 +127,7 @@94 install -m 755 whiptail $(instroot)/$(bindir)95 install -m 644 whiptail.1 $(instroot)/$(man1dir)96 make -C po datadir=$(instroot)/$(datadir) install97 - install -m 644 -D libnewt.pc $(instroot)/$(pkgconfigdir)/libnewt.pc98 + install -m 644 libnewt.pc $(instroot)/$(pkgconfigdir)/libnewt.pc99 100 install-sh: sharedlib $(WHIPTCLSO) _snackmodule.so101 [ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir) -
trunk/dports/devel/libnewt/files/patch-configure.ac.diff
r73485 r79879 1 --- configure.ac.orig 2010-08-06 06:45:34.000000000 -0500 2 +++ configure.ac 2010-11-14 19:11:45.000000000 -0600 3 @@ -13,8 +13,24 @@ 4 AC_PROG_CC 5 AC_PROG_INSTALL 6 AC_PROG_LN_S 7 +AC_PROG_GREP 8 + 9 +# Are we using GNU ld? 10 +AC_MSG_CHECKING([for GNU ld]) 11 +LD=`$CC -print-prog-name=ld 2>&5` 12 + 13 +if test `$LD -v 2>&1 | $ac_cv_path_GREP -c "GNU ld"` = 0; then 14 + # Not 15 + GNU_LD="" 16 + AC_MSG_RESULT([no]) 17 +else 18 + GNU_LD="$LD" 19 + AC_MSG_RESULT([yes]) 20 + AC_SUBST([GNU_LD]) 21 +fi 1 --- configure.ac.orig 2011-06-27 07:24:04.000000000 -0500 2 +++ configure.ac 2011-06-28 20:49:18.000000000 -0500 3 @@ -30,27 +30,7 @@ 4 fi 22 5 23 6 AC_CHECK_HEADERS([sys/select.h alloca.h]) 24 +AC_CHECK_HEADERS([popt.h libintl.h]) 7 -AC_CHECK_HEADER([slang.h], [], [ 8 - old_CPPFLAGS=${CPPFLAGS} 9 - CPPFLAGS="${CPPFLAGS} -I/opt/local/include" 10 - unset ac_cv_header_slang_h 11 - AC_CHECK_HEADER([slang.h]) 12 - if test x$ac_cv_header_slang_h = x; then 13 - CPPFLAGS="${old_CPPFLAGS}" 14 - else 15 - LDFLAGS="${LDFLAGS} -L/opt/local/lib" 16 - fi 17 -]) 18 -if test x$ac_cv_header_slang_h = x; then 19 - old_CPPFLAGS=${CPPFLAGS} 20 - CPPFLAGS="${CPPFLAGS} -I/sw/include" 21 - AC_CHECK_HEADER([slang.h]) 22 - if test x$ac_cv_header_slang_h = x; then 23 - CPPFLAGS=${old_CPPFLAGS} 24 - else 25 - LDFLAGS="${LDFLAGS} -L/sw/lib" 26 - fi 27 -fi 28 +AC_CHECK_HEADER([slang.h]) 29 AC_CHECK_HEADERS([popt.h libintl.h]) 25 30 26 31 AC_MSG_CHECKING([for python versions]) 27 PYTHONVERS=$(echo /usr/include/python*/Python.h | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null) 32 @@ -73,16 +53,6 @@ 33 # check in a few common install locations 34 if test x"${ac_cv_c_tclconfig}" = x ; then 35 for i in `ls -d ${libdir} 2>/dev/null` \ 36 - `ls -d /usr/lib 2>/dev/null` \ 37 - `ls -d /usr/lib64 2>/dev/null` \ 38 - `ls -d /usr/local/lib 2>/dev/null` \ 39 - `ls -d /usr/contrib/lib 2>/dev/null` \ 40 - `ls -d /usr/pkg/lib 2>/dev/null` \ 41 - `ls -d /usr/local/lib/tcl8.5 2>/dev/null` \ 42 - `ls -d /usr/local/lib/tcl8.4 2>/dev/null` \ 43 - `ls -d /usr/lib/tcl8.5 2>/dev/null` \ 44 - `ls -d /usr/lib/tcl8.4 2>/dev/null` \ 45 - `ls -d /opt/local/lib 2>/dev/null` \ 46 ; do 47 if test -f "$i/tclConfig.sh" ; then 48 ac_cv_c_tclconfig=`(cd $i; pwd)`
Note: See TracChangeset
for help on using the changeset viewer.

