aboutsummaryrefslogtreecommitdiffstats
path: root/devel/styx/Makefile
blob: 7bf19c212b2651c53c6bf246bb1ca38b3c234fc2 (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
# ex:ts=8
# New ports collection makefile for:    styx
# Date created:         Apr 17, 2001
# Whom:             Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   styx
PORTVERSION=    1.5
PORTREVISION=   2
CATEGORIES= devel
MASTER_SITES=   http://www.speculate.de/styx/
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org

LIB_DEPENDS=    iconv.3:${PORTSDIR}/converters/libiconv

USE_GMAKE=  yes
USE_LIBTOOL=    yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_FLAGS}" \
        LDFLAGS="-L${LOCALBASE}/lib -liconv ${PTHREAD_LIBS}"
INSTALLS_SHLIB= yes

post-extract:
    @${RM} -f ${WRKSRC}/config.cache

post-patch:
    @${PERL} -pi -e "s,-lrt,${PTHREAD_LIBS},g" ${WRKSRC}/configure

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${TAR} -C ${WRKSRC} -cf - doc tutorial | \
        ${TAR} -C ${DOCSDIR} --unlink -xf -
    @${FIND} ${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
    @${FIND} ${DOCSDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
.endif

.include <bsd.port.mk>