aboutsummaryrefslogtreecommitdiff
path: root/graphics/aolserver-nsgd/Makefile
blob: c8f4cce8e71a5d509c5b5efeafae9b6ff50ae75b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:	aolserver-nsgd
# Date created:		12 Oct 2006
# Whom:			Martin Matuska <martin@matuska.org>
#
# $FreeBSD$
#

PORTNAME=	aolserver-nsgd
PORTVERSION=	2.0
CATEGORIES=	graphics www
MASTER_SITES=	http://www.aolserver.cz/download/
DISTFILES=	nsgd2.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_BUILD=	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"

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>