1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

- fix build of libns*.so

- move AOLSERVERBASE under PREFIX
- move small pkg-plist to PLIST_FILES
- bump PORTREVISION

Approved by:	garga (mentor)
This commit is contained in:
Martin Matuska 2007-07-02 22:43:31 +00:00
parent 37281f769a
commit d7fa652b2c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=194732
10 changed files with 81 additions and 46 deletions

View File

@ -5,33 +5,41 @@
# $FreeBSD$
#
PORTNAME= aolserver-nszlib
PORTNAME= nszlib
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= archivers www
MASTER_SITES= ftp://ftp.crystalballinc.com/pub/vlad/
MASTER_SITE_SUBDIR= aolserver
DISTNAME= nszlib
PKGNAMEPREFIX= aolserver-
DISTNAME= ${PORTNAME}
DIST_SUBDIR= aolserver
MAINTAINER= mm@FreeBSD.org
COMMENT= Zlib library interface for AOLserver
AOLSERVERBASE?= ${PREFIX}/aolserver
AOLSERVERBASE?= aolserver
BUILD_DEPENDS+= ${AOLSERVERBASE}/bin/nsd:${PORTSDIR}/www/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}" \
DLLLIBS="-lz" MODLIBS="-lz"
PLIST_FILES= ${AOLSERVERBASE}/bin/nszlib.so \
${AOLSERVERBASE}/lib/libnszlib.a \
${AOLSERVERBASE}/lib/libnszlib.so
.if !defined(NOPORTDOCS)
PORTDOCS= ChangeLog README example.tcl
.endif
post-patch:
@ ${REINPLACE_CMD} -e 's|OBJS|MODOBJS|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's/^MODLIBS =/MODLIBS +=/g' \
-e '/^OBJS =.*/{n;s/.*/MODOBJS = $$(OBJS)/g;G;}' \
${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)

View File

@ -1,3 +0,0 @@
%%AOLSERVERBASE%%/bin/nszlib.so
%%AOLSERVERBASE%%/lib/libnszlib.a
%%AOLSERVERBASE%%/lib/libnszlib.so

View File

@ -5,35 +5,44 @@
# $FreeBSD$
#
PORTNAME= aolserver-nsmysql
PORTNAME= nsmysql
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= databases www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= aolserver
DISTFILES= nsmysql_v1.tar.gz
PKGNAMEPREFIX= aolserver-
DISTNAME= nsmysql_v1
DIST_SUBDIR= aolserver
MAINTAINER= mm@FreeBSD.org
COMMENT= Internal MySQL database driver for AOLserver
WRKSRC= ${WRKDIR}/nsmysql_v1
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_MYSQL= yes
USE_GMAKE= yes
MAKE_ARGS= AOLSERVER=${AOLSERVERBASE}
MAKE_ARGS= AOLSERVER="${LOCALBASE}/${AOLSERVERBASE}" \
MYSQL_PREFIX="${LOCALBASE}" \
MODLIBS="-L${LOCALBASE}/lib/mysql -lmysqlclient_r" \
DLLLIBS="-L${LOCALBASE}/lib/mysql -lmysqlclient_r" \
NO_LDOVERRIDE=1
PLIST_FILES= ${AOLSERVERBASE}/bin/nsmysql.so \
${AOLSERVERBASE}/lib/libnsmysql.a \
${AOLSERVERBASE}/lib/libnsmysql.so
.if !defined(NOPORTDOCS)
PORTDOCS= ChangeLog README INSTALL
.endif
post-patch:
@ ${REINPLACE_CMD} -e 's|OBJS|MODOBJS|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's/^MODLIBS =/MODLIBS +=/g' \
-e '/^OBJS =.*/{n;s/.*/MODOBJS = $$(OBJS)/g;G;}' \
${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)

View File

@ -1,3 +0,0 @@
%%AOLSERVERBASE%%/bin/nsmysql.so
%%AOLSERVERBASE%%/lib/libnsmysql.a
%%AOLSERVERBASE%%/lib/libnsmysql.so

View File

@ -7,6 +7,7 @@
PORTNAME= nspostgres
PORTVERSION= 4.1
PORTREVISION= 1
DISTVERSIONSUFFIX= -src
CATEGORIES= databases www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@ -19,21 +20,32 @@ COMMENT= Internal PostgreSQL driver for AOLserver
WRKSRC= ${WRKDIR}/nspostgres-${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_PGSQL= yes
DEFAULT_PGSQL_VER= 82
USE_GMAKE= yes
MAKE_ARGS= AOLSERVER=${AOLSERVERBASE} POSTGRES=${LOCALBASE} ACS=1
MAKE_ARGS= AOLSERVER="${LOCALBASE}/${AOLSERVERBASE}" \
PG_CONFIG="${LOCALBASE}/bin/pg_config" \
POSTGRES=PG_CONFIG ACS=1 OPENSSL=1
PLIST_FILES= ${AOLSERVERBASE}/bin/nspostgres.so \
${AOLSERVERBASE}/lib/libnspostgres.a \
${AOLSERVERBASE}/lib/libnspostgres.so
.if !defined(NOPORTDOCS)
PORTDOCS= ChangeLog README
.endif
post-patch:
@${REINPLACE_CMD} \
-e '/^MODOBJS =.*/{n;s/.*/OBJS = $$(MODOBJS)/g;G;}' \
-e '/MODLIBS *+=.*/{p;s/MODLIBS *+=/DLLLIBS +=/g;}' \
${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${DOCSDIR}

View File

@ -1,3 +0,0 @@
%%AOLSERVERBASE%%/bin/nspostgres.so
%%AOLSERVERBASE%%/lib/libnspostgres.a
%%AOLSERVERBASE%%/lib/libnspostgres.so

View File

@ -7,7 +7,7 @@
PORTNAME= nsgd
PORTVERSION= 2.0
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= graphics www
MASTER_SITES= http://www.aolserver.cz/download/
PKGNAMEPREFIX= aolserver-
@ -20,11 +20,10 @@ COMMENT= Graphics module for AOLserver
WRKSRC= ${WRKDIR}
AOLSERVERBASE?= ${PREFIX}/aolserver
AOLSERVERBASE?= aolserver
LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd
BUILD_DEPENDS+= ${AOLSERVERBASE}/bin/nsd:${PORTSDIR}/www/aolserver
BUILD_DEPENDS+= ${LOCALBASE}/${AOLSERVERBASE}/bin/nsd:${PORTSDIR}/www/aolserver
RUN_DEPENDS+= ${BUILD_DEPENDS}
PLIST_SUB+= AOLSERVERBASE=${AOLSERVERBASE:S/${PREFIX}\///}
USE_GMAKE= yes
@ -33,13 +32,23 @@ USE_TCL_THREADS= yes
.include <bsd.port.pre.mk>
MAKE_ARGS= NSHOME=${AOLSERVERBASE} MODLIBS="-L${LOCALBASE}/lib -lgd" \
CFLAGS="-I. -I${AOLSERVERBASE}/include -I${LOCALBASE}/include -I${TCL_INCLUDEDIR} -DAOL4=1 -fPIC"
CFLAGS+= "-I${LOCALBASE}/include"
MAKE_ARGS= NSHOME="${LOCALBASE}/${AOLSERVERBASE}" \
MODLIBS="-L${LOCALBASE}/lib -lgd" \
DLLLIBS="-L${LOCALBASE}/lib -lgd"
PLIST_FILES= ${AOLSERVERBASE}/bin/nsgd2.so \
${AOLSERVERBASE}/lib/libnsgd2.a \
${AOLSERVERBASE}/lib/libnsgd2.so
PORTDOCS= nsgd.html
post-patch:
@ ${REINPLACE_CMD} -e 's|OBJS|MODOBJS|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's/CFLAGS =/CFLAGS +=/g' \
-e '/^OBJS =.*/{p;s/OBJS =.*/MODOBJS = $$(OBJS)/g;}' \
-e 's/^MODLIBS =/#MODLIBS =/g' \
${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)

View File

@ -1,3 +0,0 @@
%%AOLSERVERBASE%%/bin/nsgd2.so
%%AOLSERVERBASE%%/lib/libnsgd2.a
%%AOLSERVERBASE%%/lib/libnsgd2.so

View File

@ -7,6 +7,7 @@
PORTNAME= aolserver-nsencrypt
PORTVERSION= 0.4
PORTREVISION= 1
CATEGORIES= security www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= aolserver
@ -18,20 +19,31 @@ COMMENT= OpenSSL data encryption module for AOLserver
WRKSRC= ${WRKDIR}/nsencrypt-${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}\///}
PLIST_SUB+= AOLSERVERBASE=${AOLSERVERBASE}
USE_OPENSSL= yes
USE_GMAKE= yes
MAKE_ARGS= AOLSERVER=${AOLSERVERBASE} OPENSSL=${OPENSSLBASE}
MAKE_ARGS= AOLSERVER="${LOCALBASE}/${AOLSERVERBASE}" \
OPENSSL="${OPENSSLBASE}"
PLIST_FILES= ${AOLSERVERBASE}/bin/nsencrypt.so \
${AOLSERVERBASE}/lib/libnsencrypt.a \
${AOLSERVERBASE}/lib/libnsencrypt.so
.if !defined(NOPORTDOCS)
PORTDOCS= ChangeLog readme.txt
.endif
post-patch:
@${REINPLACE_CMD} \
-e '/^MODOBJS =.*/{p;s/MODOBJS =/OBJS +=/g;}' \
-e '/^MODLIBS =.*/{p;s/MODLIBS =/DLLLIBS +=/g;}' \
${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${DOCSDIR}

View File

@ -1,3 +0,0 @@
%%AOLSERVERBASE%%/bin/nsencrypt.so
%%AOLSERVERBASE%%/lib/libnsencrypt.a
%%AOLSERVERBASE%%/lib/libnsencrypt.so