aboutsummaryrefslogtreecommitdiff
path: root/devel/argtable/Makefile
blob: a496b255c6b1f62ea50e86a8c1476a994ccd7060 (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
# ex:ts=8
# Ports collection makefile for:	argtable
# Date created:			Dec 17, 2003
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	argtable
PORTVERSION=	2.12
CATEGORIES=	devel
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
DISTNAME=	${PORTNAME}${PORTVERSION:S/./-/}

MAINTAINER=	corky1951@comcast.net
COMMENT=	An ANSI C library for parsing GNU style command line arguments

USE_GNOME=	gnometarget
USE_AUTOTOOLS=	libtool
USE_LDCONFIG=	yes

MAN3=		argtable2.3
MLINKS=		argtable2.3 argtable.3

post-patch:
	@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||g ; \
		 s|^install-data-am: |install-data-am: #|g' ${WRKSRC}/Makefile.in

post-install:
	${INSTALL_MAN} ${WRKSRC}/doc/argtable2.3 ${MAN3PREFIX}/man/man3
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/*.gif ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/*.ps ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/example/*.c ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/example/*.h ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/example/*.txt ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>