diff options
author | lofi <lofi@FreeBSD.org> | 2005-10-18 03:44:19 +0800 |
---|---|---|
committer | lofi <lofi@FreeBSD.org> | 2005-10-18 03:44:19 +0800 |
commit | 351d4b99b2d00ccfbc57ebf87db26ff672452af8 (patch) | |
tree | a20da6fc3dab258d3d6c1e9154d5a9a8951ed07c | |
parent | e5bb49cc282ccf01e22480e6ad225934b24f44f1 (diff) | |
download | freebsd-ports-gnome-351d4b99b2d00ccfbc57ebf87db26ff672452af8.tar.gz freebsd-ports-gnome-351d4b99b2d00ccfbc57ebf87db26ff672452af8.tar.zst freebsd-ports-gnome-351d4b99b2d00ccfbc57ebf87db26ff672452af8.zip |
Make PREFIX,CXXFLAGS and PTHREAD_*-safe.
-rw-r--r-- | devel/tinyq/Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/devel/tinyq/Makefile b/devel/tinyq/Makefile index 197bc32e98bb..dc030ddf9197 100644 --- a/devel/tinyq/Makefile +++ b/devel/tinyq/Makefile @@ -9,7 +9,7 @@ PORTNAME= tinyq PORTVERSION= 3.0.6 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 0 CATEGORIES= devel kde MASTER_SITES= ${MASTER_SITE_SAVANNAH} @@ -21,10 +21,22 @@ COMMENT= A stripped down version of Qt 3 for use as a utility library USE_BZIP2= yes USE_GMAKE= yes HAS_CONFIGURE= yes -CONFIGURE_ARGS+=-thread -stl +CONFIGURE_ARGS+=-thread -stl -prefix ${PREFIX}/tinyq CONFIGURE_ENV+= QTDIR="${WRKSRC}" MAKE_ENV+= QTDIR="${WRKSRC}" -INSTALLDIR= ${PREFIX}/tinyq NO_FILTER_SHLIBS=yes +USE_REINPLACE= YES +REINPLACE_CMD= /usr/bin/sed -i '' + +post-patch: + @${REINPLACE_CMD} -e 's|-O2|${CXXFLAGS}|' \ + -e 's|gcc|${CC}|' \ + -e 's|g++|${CXX}|' \ + -e 's|/usr/local|${LOCALBASE}|' \ + -e 's|/usr/X11R6|${X11BASE}|' \ + -e 's|release|release thread|' \ + -e 's|-pthread -D_THREAD_SAFE|${PTHREAD_CFLAGS}|' \ + -e 's|-pthread|${PTHREAD_LIBS}|' \ + ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf .include <bsd.port.mk> |