diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-04-14 20:09:54 +0000 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-04-14 20:09:54 +0000 |
commit | 21190f0f945927439b7a07d66c39bf210cc06f0b (patch) | |
tree | 1480fb6f3b9fad91a0181d3a4758b4b696cc7bb2 /devel/uds/Makefile | |
parent | fbe77d249792b904d3d26cd2bfde6d4c00be1a8b (diff) | |
download | FreeBSD-ports-21190f0f945927439b7a07d66c39bf210cc06f0b.zip FreeBSD-ports-21190f0f945927439b7a07d66c39bf210cc06f0b.tar.gz |
- Support CFLAGS properly
- Fix configure error
- Fix pkg-plist
- Support NOPORTDOCS
PR: 26550
Submitted by: tkato@prontomail.ne.jp
Diffstat (limited to 'devel/uds/Makefile')
-rw-r--r-- | devel/uds/Makefile | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/devel/uds/Makefile b/devel/uds/Makefile index dcd3587..94d8e7a 100644 --- a/devel/uds/Makefile +++ b/devel/uds/Makefile @@ -13,18 +13,24 @@ MASTER_SITES= http://frost.flewid.de/dist/ MAINTAINER= ijliao@FreeBSD.org -USE_AUTOMAKE= yes -USE_AUTOCONF= yes +USE_NEWGCC= yes +USE_GMAKE= yes USE_LIBTOOL= yes -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --disable-debug +INSTALLS_SHLIB= yes -USE_GMAKE= yes -USE_NEWGCC= yes +pre-patch: + @${PERL} -pi -e 's|\$$OPTFLAGS|\$$CFLAGS|g ; \ + s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure -INSTALLS_SHLIB= yes + @find ${WRKSRC} -name 'Makefile.in' | xargs ${PERL} -pi -e \ + 's|install-data-hook|#install-data-hook|g ; \ + s|-D_REENTRANT|-D_REENTRANT ${PTHREAD_CFLAGS}|g ; \ + s|-lpthread|${PTHREAD_LIBS}|g' -post-patch: - @${PERL} -pi -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/thread/Makefile.am +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/uds + ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/uds +.endif .include <bsd.port.mk> |