summaryrefslogtreecommitdiff
path: root/archivers/aolserver-nszlib/Makefile
blob: 51dd2a71063bd96e866a7de62deca346f89ed43e (plain)
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
# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$

PORTNAME=	nszlib
PORTVERSION=	1.1
PORTREVISION=	2
CATEGORIES=	archivers www
MASTER_SITES=	ftp://ftp.crystalballinc.com/pub/vlad/
MASTER_SITE_SUBDIR=	aolserver
PKGNAMEPREFIX=	aolserver-
DISTNAME=	${PORTNAME}
DIST_SUBDIR=	aolserver

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Zlib library interface for AOLserver

LICENSE=	MPL GPLv1
LICENSE_COMB=	dual

NO_STAGE=	yes
AOLSERVERBASE?=	aolserver

BUILD_DEPENDS+=	${LOCALBASE}/${AOLSERVERBASE}/bin/nsd:${PORTSDIR}/www/aolserver
RUN_DEPENDS+=	${LOCALBASE}/${AOLSERVERBASE}/bin/nsd:${PORTSDIR}/www/aolserver

USES=		gmake

MAKE_ARGS=	AOLSERVER="${LOCALBASE}/${AOLSERVERBASE}" \
		DLLLIBS="-lz" MODLIBS="-lz"

PLIST_FILES=	${AOLSERVERBASE}/bin/nszlib.so \
		${AOLSERVERBASE}/lib/libnszlib.a \
		${AOLSERVERBASE}/lib/libnszlib.so

PORTDOCS=	ChangeLog README example.tcl

.include <bsd.port.options.mk>
post-patch:
	@${REINPLACE_CMD} -e 's/^MODLIBS  =/MODLIBS +=/g' \
		-e '/^OBJS     =.*/{n;s/.*/MODOBJS  = $$(OBJS)/g;G;}' \
		${WRKSRC}/Makefile

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@ ${MKDIR} ${DOCSDIR}
.for FILE in ${PORTDOCS}
	@ ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>