c52df9dac4
WWW: http://www.aolserver.com/ - Martin Matuska martin@matuska.org PR: ports/105781 Submitted by: Martin Matuska <martin@matuska.org> Approved by: erwin (mentor)
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# New ports collection makefile for: aolserver-nspostgres
|
|
# Date created: 12 Oct 2006
|
|
# Whom: Martin Matuska <martin@matuska.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= aolserver-nspostgres
|
|
PORTVERSION= 4.0
|
|
CATEGORIES= databases www
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= aolserver
|
|
DISTFILES= nspostgres-${PORTVERSION}.tar.gz
|
|
DIST_SUBDIR= aolserver
|
|
|
|
MAINTAINER= martin@matuska.org
|
|
COMMENT= Internal PostgreSQL driver for AOLserver
|
|
|
|
WRKSRC= ${WRKDIR}/nspostgres-${PORTVERSION}
|
|
|
|
AOLSERVERBASE?= ${PREFIX}/aolserver
|
|
BUILD_DEPENDS+= ${AOLSERVERBASE}/bin/nsd:${PORTSDIR}/www/aolserver
|
|
RUN_DEPENDS+= ${BUILD_DEPENDS}
|
|
PLIST_SUB+= AOLSERVERBASE=${AOLSERVERBASE:S/${PREFIX}\///}
|
|
|
|
USE_PGSQL= yes
|
|
USE_GMAKE= yes
|
|
|
|
MAKE_ARGS= AOLSERVER=${AOLSERVERBASE} POSTGRES=${LOCALBASE} ACS=1
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= ChangeLog README
|
|
.endif
|
|
|
|
post-patch:
|
|
@ ${REINPLACE_CMD} -e 's|OBJS|MODOBJS|' ${WRKSRC}/Makefile
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@ ${MKDIR} ${DOCSDIR}
|
|
.for FILE in ${PORTDOCS}
|
|
@ ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|