aboutsummaryrefslogtreecommitdiff
path: root/devel/fastdep
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2003-05-07 17:50:05 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2003-05-07 17:50:05 +0000
commit5030e018d0030f493021ca728d75ea1cadcdcf7f (patch)
tree7ccb8a54234d44521d7963f2338eb238becaae12 /devel/fastdep
parentea613a9dd81315bf1f7f93c13f3edf0062db627a (diff)
downloadports-5030e018d0030f493021ca728d75ea1cadcdcf7f.tar.gz
ports-5030e018d0030f493021ca728d75ea1cadcdcf7f.zip
Notes
Diffstat (limited to 'devel/fastdep')
-rw-r--r--devel/fastdep/Makefile22
-rw-r--r--devel/fastdep/files/patch-Makefile20
-rw-r--r--devel/fastdep/pkg-plist6
3 files changed, 32 insertions, 16 deletions
diff --git a/devel/fastdep/Makefile b/devel/fastdep/Makefile
index f9ab84833a53..b113044e3cf4 100644
--- a/devel/fastdep/Makefile
+++ b/devel/fastdep/Makefile
@@ -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>
diff --git a/devel/fastdep/files/patch-Makefile b/devel/fastdep/files/patch-Makefile
new file mode 100644
index 000000000000..cee1cb42ce72
--- /dev/null
+++ b/devel/fastdep/files/patch-Makefile
@@ -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
diff --git a/devel/fastdep/pkg-plist b/devel/fastdep/pkg-plist
index 031a0348ccb0..af00fc56fa0b 100644
--- a/devel/fastdep/pkg-plist
+++ b/devel/fastdep/pkg-plist
@@ -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%%