freebsd-ports/databases/aolserver-nspostgres/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

57 lines
1.4 KiB
Makefile

# New ports collection makefile for: aolserver-nspostgres
# Date created: 12 Oct 2006
# Whom: Martin Matuska <mm@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= nspostgres
PORTVERSION= 4.1
PORTREVISION= 3
DISTVERSIONSUFFIX= -src
CATEGORIES= databases www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= aolserver
PKGNAMEPREFIX= aolserver-
DIST_SUBDIR= aolserver
MAINTAINER= mm@FreeBSD.org
COMMENT= Internal PostgreSQL driver for AOLserver
WRKSRC= ${WRKDIR}/nspostgres-${PORTVERSION}
AOLSERVERBASE?= aolserver
BUILD_DEPENDS+= ${LOCALBASE}/${AOLSERVERBASE}/bin/nsd:${PORTSDIR}/www/aolserver
RUN_DEPENDS+= ${LOCALBASE}/${AOLSERVERBASE}/bin/nsd:${PORTSDIR}/www/aolserver
USE_PGSQL= yes
DEFAULT_PGSQL_VER= 82
USE_GMAKE= yes
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}
.for FILE in ${PORTDOCS}
@ ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>