aboutsummaryrefslogtreecommitdiffstats
path: root/security/aolserver-nsmcrypt/Makefile
blob: 8e785c5e93efdf4da4fcdb7ded6cd9a3149f512c (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-nsmcrypt
# Date created:     12 Oct 2006
# Whom:         Martin Matuska <mm@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   nsmcrypt
PORTVERSION=    1.1
CATEGORIES= security www
MASTER_SITES=   http://www.aolserver.cz/download/
PKGNAMEPREFIX=  aolserver-
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    aolserver

MAINTAINER= mm@FreeBSD.org
COMMENT=    AOLserver interface to mcrypt library

WRKSRC=     ${WRKDIR}

AOLSERVERBASE?= aolserver
LIB_DEPENDS+=   mcrypt.8:${PORTSDIR}/security/mcrypt
BUILD_DEPENDS+= ${LOCALBASE}/${AOLSERVERBASE}/bin/nsd:${PORTSDIR}/www/aolserver
RUN_DEPENDS+=   ${BUILD_DEPENDS}

USE_GMAKE=  yes
MAKEFILE=   Makefile.ns

USE_TCL=    84+
USE_TCL_THREADS=    yes

PLIST_FILES=    ${AOLSERVERBASE}/bin/nsmcrypt.so \
        ${AOLSERVERBASE}/lib/libnsmcrypt.a \
        ${AOLSERVERBASE}/lib/libnsmcrypt.so

.include <bsd.port.pre.mk>

CFLAGS+=    "-I${LOCALBASE}/include"
MAKE_ARGS+= NSHOME="${LOCALBASE}/${AOLSERVERBASE}" \
        DLLLIBS="-L${LOCALBASE}/lib -lmcrypt" \
        MODLIBS="-L${LOCALBASE}/lib -lmcrypt"

.if !defined(NOPORTDOCS)
PORTDOCS=   AUTHORS CHANGES COPYING README
.endif

post-patch:
    @${REINPLACE_CMD} -e 's/^CFLAGS   =/CFLAGS  +=/g' \
    -e 's/^MODLIBS  =/MODLIBS +=/g' \
    -e '/^OBJS     =.*/{n;s/.*/MODOBJS  = $$(OBJS)/g;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>