aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libcfg/Makefile
blob: a141144108cdef5a3e916b15ddfac5b3763f1780 (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
# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$

PORTNAME=   libcfg
PORTVERSION=    0.6.2
PORTREVISION=   3
CATEGORIES= devel
MASTER_SITES=   http://platon.sk/upload/_projects/00003/
DISTNAME=   ${PORTNAME}+-${DISTVERSION}

MAINTAINER= rodrigo@FreeBSD.org
COMMENT=    Library for command line and configuration file parsing

BROKEN=     unfetchable

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       autoreconf gmake
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes

INSTALL_TARGET= install-strip install-man

PORTDOCS=   *

OPTIONS_DEFINE= EXAMPLES DOCS
OPTIONS_SUB=    yes

CFLAGS_amd64=   -fPIC
CFLAGS_ia64=    -fPIC

post-install:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/examples/example.* ${STAGEDIR}${EXAMPLESDIR}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/html
.for FILE in AUTHORS README TODO
    ${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
    for FILE in ${WRKSRC}/doc/html/*; do \
        ${INSTALL_DATA} $${FILE} ${STAGEDIR}${DOCSDIR}/html; \
    done

.include <bsd.port.mk>