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

PORTNAME=   argtable
PORTVERSION=    2.3
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    An ANSI C library for parsing GNU style command line arguments

WRKSRC=     ${WRKDIR}/${PORTNAME}2

USE_GETOPT_LONG=    yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${ARCH}-portbld-freebsd${OSREL}

MAN3=       argtable2.3

do-install:
    ${INSTALL_DATA} ${WRKSRC}/src/argtable2.h ${PREFIX}/include
    ${INSTALL_DATA} ${WRKSRC}/src/libargtable2.a ${PREFIX}/lib
    ${INSTALL_MAN} ${WRKSRC}/doc/argtable2.3 ${MANPREFIX}/man/man3
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in argtable2-intro.html argtable2-intro.pdf argtable2-intro.ps \
    argtable2.html argtable2.pdf argtable2.ps
    ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
.endfor
    @${MKDIR} ${EXAMPLESDIR}
.for file in Makefile README.txt echo.c ls.c mv.c myprog.c myprog_C89.c \
    rm.c uname.c
    ${INSTALL_DATA} ${WRKSRC}/example/${file} ${EXAMPLESDIR}
.endfor
.endif

.include <bsd.port.mk>