summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2007-07-02 22:54:02 +0000
committermm <mm@FreeBSD.org>2007-07-02 22:54:02 +0000
commit5f9ff641f1e27a7bdd47539810a24d0e9aa017bd (patch)
treeb84e6afa2772861fb22cfb120e519340aa70c35b
parent175c47ed298fe33b381ba0f0edd2b1a2176c3736 (diff)
downloadFreeBSD-ports-5f9ff641f1e27a7bdd47539810a24d0e9aa017bd.zip
FreeBSD-ports-5f9ff641f1e27a7bdd47539810a24d0e9aa017bd.tar.gz
- fix build of libns*.so
- move AOLSERVERBASE under PREFIX - move small pkg-plist to PLIST_FILES - bump PORTREVISION Approved by: garga (mentor)
-rw-r--r--www/aolserver-nscache/Makefile16
-rw-r--r--www/aolserver-nscache/pkg-plist3
2 files changed, 11 insertions, 8 deletions
diff --git a/www/aolserver-nscache/Makefile b/www/aolserver-nscache/Makefile
index 8d357d4..895dc0d 100644
--- a/www/aolserver-nscache/Makefile
+++ b/www/aolserver-nscache/Makefile
@@ -7,6 +7,7 @@
PORTNAME= aolserver-nscache
PORTVERSION= 1.5
+PORTREVISION= 1
CATEGORIES= www databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= aolserver
@@ -18,21 +19,26 @@ COMMENT= Tcl interface to AOLserver's caching API
WRKSRC= ${WRKDIR}/nscache-${PORTVERSION}
-AOLSERVERBASE?= ${PREFIX}/aolserver
-BUILD_DEPENDS+= ${AOLSERVERBASE}/bin/nsd:${PORTSDIR}/www/aolserver
+AOLSERVERBASE?= aolserver
+BUILD_DEPENDS+= ${LOCALBASE}/${AOLSERVERBASE}/bin/nsd:${PORTSDIR}/www/aolserver
RUN_DEPENDS+= ${BUILD_DEPENDS}
-PLIST_SUB+= AOLSERVERBASE=${AOLSERVERBASE:S/${PREFIX}\///}
USE_GMAKE= yes
-MAKE_ARGS= AOLSERVER=${AOLSERVERBASE}
+MAKE_ARGS= AOLSERVER="${LOCALBASE}/${AOLSERVERBASE}"
+
+PLIST_FILES= ${AOLSERVERBASE}/bin/nscache.so \
+ ${AOLSERVERBASE}/lib/libnscache.a \
+ ${AOLSERVERBASE}/lib/libnscache.so
.if !defined(NOPORTDOCS)
PORTDOCS= ChangeLog index.html
.endif
post-patch:
- @ ${REINPLACE_CMD} -e 's|OBJS|MODOBJS|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} \
+ -e '/^OBJS =.*/{p;s/OBJS =.*/MODOBJS = $$(OBJS)/g;}' \
+ ${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
diff --git a/www/aolserver-nscache/pkg-plist b/www/aolserver-nscache/pkg-plist
deleted file mode 100644
index 039c318..0000000
--- a/www/aolserver-nscache/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-%%AOLSERVERBASE%%/bin/nscache.so
-%%AOLSERVERBASE%%/lib/libnscache.a
-%%AOLSERVERBASE%%/lib/libnscache.so
OpenPOWER on IntegriCloud