utilize USE_GETOPT_LONG

grab maintainership

PR:		51522
Submitted by:	Sergei Kolobov <sergei@kolobov.com>
This commit is contained in:
Ying-Chieh Liao 2003-05-07 17:50:05 +00:00
parent ea613a9dd8
commit 5030e018d0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=80387
3 changed files with 32 additions and 16 deletions

View file

@ -8,33 +8,27 @@
PORTNAME= fastdep
PORTVERSION= 0.15
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.irule.be/bvh/c++/fastdep/
MAINTAINER= ports@FreeBSD.org
MAINTAINER= sergei@kolobov.com
COMMENT= Fast dependency generator for C/C++ files
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
USE_REINPLACE= yes
USE_GMAKE= yes
USE_GETOPT_LONG= yes
HAS_CONFIGURE= yes
MAKE_ENV= CXX="${CXX} -I${LOCALBASE}/include -DHAVE_DECL_GETOPT=1" \
CXXFLAGS="${CXXFLAGS}"
CONFIGURE_ARGS= --disable-local-gnugetopt
MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
post-patch:
.for file in Makefile config/link.mk build/dependencies.mk
@${REINPLACE_CMD} -e 's|g++|\$$\(CXX\)|g ; \
s|[\$$][(]CFLAGS[)]||g ; \
s|\. -l|\$$\{LOCALBASE\}/lib -l|g' ${WRKSRC}/${file}
.endfor
@${REINPLACE_CMD} -e 's|PREFIX=|PREFIX?=|g' ${WRKSRC}/Makefile.options
DOCS= AUTHORS CHANGELOG INSTALL README \
doc/fastdep.html doc/fastdep.pdf doc/c*.htm
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fastdep ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.* ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>

View file

@ -0,0 +1,20 @@
--- Makefile.orig Mon Apr 28 20:40:22 2003
+++ Makefile Mon Apr 28 20:41:03 2003
@@ -26,7 +26,7 @@
$(OBJECTS): config/config.me $(ALLMAKEFILES)
$(BINARY): $(OBJECTS) $(ALLMAKEFILES)
- g++ $(CFLAGS) $(CXXFLAGS) -o $(BINARY) $(OBJECTS)
+ $(CXX) $(LDFLAGS) $(CXXFLAGS) -o $(BINARY) $(OBJECTS)
# Here is a trick on how to get fastdep linking on older cygwins.
# It's probably also needed to get it working on VC 6.0.
# However, since I am still reworking the build environment for now,
@@ -38,7 +38,7 @@
#endif
.cc.o: $(ALLMAKEFILES)
- g++ $(CFLAGS) $(CXXFLAGS) -c $< -o $@
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
clean:
-rm -f $(OBJECTS) $(BINARY) .depends-all

View file

@ -1,12 +1,14 @@
bin/fastdep
%%PORTDOCS%%%%DOCSDIR%%/book1.htm
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/c100.htm
%%PORTDOCS%%%%DOCSDIR%%/c23.htm
%%PORTDOCS%%%%DOCSDIR%%/c34.htm
%%PORTDOCS%%%%DOCSDIR%%/c49.htm
%%PORTDOCS%%%%DOCSDIR%%/c63.htm
%%PORTDOCS%%%%DOCSDIR%%/c90.htm
%%PORTDOCS%%%%DOCSDIR%%/fastdep.docbook
%%PORTDOCS%%%%DOCSDIR%%/fastdep.html
%%PORTDOCS%%%%DOCSDIR%%/fastdep.pdf
%%PORTDOCS%%@dirrm %%DOCSDIR%%