mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
4c0ac4f1fd
- Fix build - Bump PORTREVISION Submitted by: pointyhat Approved by: maintainer
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
# New ports collection makefile for: aolserver-nsgd
|
|
# Date created: 12 Oct 2006
|
|
# Whom: Martin Matuska <martin@matuska.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nsgd
|
|
PORTVERSION= 2.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics www
|
|
MASTER_SITES= http://www.aolserver.cz/download/
|
|
PKGNAMEPREFIX= aolserver-
|
|
DISTNAME= ${PORTNAME}2
|
|
EXTRACT_SUFX= .tgz
|
|
DIST_SUBDIR= aolserver
|
|
|
|
MAINTAINER= martin@matuska.org
|
|
COMMENT= Graphics module for AOLserver
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
AOLSERVERBASE?= ${PREFIX}/aolserver
|
|
LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd
|
|
BUILD_DEPENDS+= ${AOLSERVERBASE}/bin/nsd:${PORTSDIR}/www/aolserver
|
|
RUN_DEPENDS+= ${BUILD_DEPENDS}
|
|
PLIST_SUB+= AOLSERVERBASE=${AOLSERVERBASE:S/${PREFIX}\///}
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_TCL_VER?= 84
|
|
|
|
.if ${USE_TCL_VER} != 84 && ${USE_TCL_VER} != 85
|
|
IGNORE= supported values for USE_TCL_VER are only 84 and 85
|
|
.endif
|
|
|
|
USE_TCL_BUILD= ${USE_TCL_VER}-thread
|
|
|
|
.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"
|
|
|
|
PORTDOCS= nsgd.html
|
|
|
|
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.post.mk>
|