summaryrefslogtreecommitdiffstats
path: root/www/qdecoder/Makefile
blob: 7aef602c1226f9a95cf1be4c37903aa34151047c (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
# Created by: CHOI Junho <cjh@FreeBSD.org>
# $FreeBSD$

PORTNAME=	qdecoder
PORTVERSION=	12.0.5
DISTVERSIONPREFIX=	r
CATEGORIES=	www

MAINTAINER=	johans@FreeBSD.org
COMMENT=	C/C++ language library including CGI supports

USE_GITHUB=	yes
GH_ACCOUNT=	wolkykim

GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
MAKE_ARGS=	exec_prefix="${PREFIX}"
PORTEXAMPLES=	*

PLIST_FILES=	include/qdecoder.h lib/libqdecoder.a \
		lib/libqdecoder.so lib/libqdecoder.so.12

OPTIONS_DEFINE=		DEBUG
DEBUG_CONFIGURE_ENABLE=	debug

post-patch:
	${REINPLACE_CMD} 's/.{[A-Z]*DIR/$${DESTDIR}&/' ${WRKSRC}/src/Makefile.in
	${REINPLACE_CMD} '/<limits/{p;s//<errno/;}' ${WRKSRC}/src/qcgireq.c

post-install:
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} "Makefile *.c *.html" \
		${STAGEDIR}${EXAMPLESDIR}
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libqdecoder.so

.include <bsd.port.mk>
OpenPOWER on IntegriCloud