diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-06-21 21:25:09 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-06-21 21:25:09 +0800 |
commit | 45fbf43e3b8622fc11b3fcd8a09fb95514ec9ac8 (patch) | |
tree | 6499f87845c6a1b7e3b8880e066401ca8404203d /lang | |
parent | 5c055ecf7699b1c752469a643c0b931e303cda4a (diff) | |
download | freebsd-ports-graphics-45fbf43e3b8622fc11b3fcd8a09fb95514ec9ac8.tar.gz freebsd-ports-graphics-45fbf43e3b8622fc11b3fcd8a09fb95514ec9ac8.tar.zst freebsd-ports-graphics-45fbf43e3b8622fc11b3fcd8a09fb95514ec9ac8.zip |
Respect CFLAGS instead of always incorporating debugging info into libgbrun
shared library, which boosts package size by 10x.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gnomebasic/Makefile | 9 | ||||
-rw-r--r-- | lang/gnomebasic/files/patch-gbrun::Makefile.in | 14 |
2 files changed, 19 insertions, 4 deletions
diff --git a/lang/gnomebasic/Makefile b/lang/gnomebasic/Makefile index f70f7a9904a..74dfa152e0a 100644 --- a/lang/gnomebasic/Makefile +++ b/lang/gnomebasic/Makefile @@ -17,16 +17,17 @@ MAINTAINER= gnome@FreeBSD.org USE_GMAKE= yes USE_X_PREFIX= yes USE_GNOME= yes +USE_REINPLACE= yes GNU_CONFIGURE= yes INSTALLS_SHLIB= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib" pre-patch: - @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure - @find ${WRKSRC} -name "Makefile.in*" | xargs ${PERL} -pi -e \ - 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \ - s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g' + @find ${WRKSRC} -name "Makefile.in*" | xargs ${REINPLACE_CMD} -e \ + 's|[(]datadir[)]/gnome/|(datadir)/|g ; \ + s|[(]datadir[)]/locale|(prefix)/share/locale|g' .include <bsd.port.mk> diff --git a/lang/gnomebasic/files/patch-gbrun::Makefile.in b/lang/gnomebasic/files/patch-gbrun::Makefile.in new file mode 100644 index 00000000000..aeb4558b783 --- /dev/null +++ b/lang/gnomebasic/files/patch-gbrun::Makefile.in @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- gbrun/Makefile.in 2002/06/21 13:21:30 1.1 ++++ gbrun/Makefile.in 2002/06/21 13:22:29 +@@ -152,7 +152,7 @@ + libgbrun_la_LIBADD = $(EXTRA_GNOME_LIBS) -lm @GLIB_LIBS@ $(top_builddir)/gbrun/objects/libgbobj.la $(top_builddir)/gbrun/objects/gba/libgba.la $(top_builddir)/gb/libgb.la + + +-CFLAGS = -g -Wall $(EXTRA_GNOME_CFLAGS) ++CFLAGS = @CFLAGS@ -Wall $(EXTRA_GNOME_CFLAGS) + + libgbrunincludedir = $(includedir)/gbrun + |