aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/aolserver-nsgd/Makefile
blob: af98cde710cd0ecdf570d081f8e418d767701d43 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# New ports collection makefile for:    aolserver-nsgd
# Date created:     12 Oct 2006
# Whom:         Martin Matuska <mm@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   nsgd
PORTVERSION=    2.0
PORTREVISION=   4
CATEGORIES= graphics www
MASTER_SITES=   http://www.aolserver.cz/download/
PKGNAMEPREFIX=  aolserver-
DISTNAME=   ${PORTNAME}2
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    aolserver

MAINTAINER= mm@FreeBSD.org
COMMENT=    Graphics module for AOLserver

WRKSRC=     ${WRKDIR}

AOLSERVERBASE?= aolserver
LIB_DEPENDS+=   gd.4:${PORTSDIR}/graphics/gd
BUILD_DEPENDS+= ${LOCALBASE}/${AOLSERVERBASE}/bin/nsd:${PORTSDIR}/www/aolserver
RUN_DEPENDS+=   ${LOCALBASE}/${AOLSERVERBASE}/bin/nsd:${PORTSDIR}/www/aolserver

USE_GMAKE=  yes

USE_TCL=    84+
USE_TCL_THREADS=    yes

.include <bsd.port.pre.mk>

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/CFLAGS   =/CFLAGS  +=/g' \
        -e '/^OBJS     =.*/{p;s/OBJS     =.*/MODOBJS  = $$(OBJS)/g;}' \
        -e 's/^MODLIBS  =/#MODLIBS  =/g' \
        ${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>