aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/wbxml2/Makefile
blob: f3cc4b271904cd5211f77006a565bdbe05c18e60 (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
# New ports collection makefile for:    wbxml
# Date created:         Nov 04, 2005
# Whom:             Clemens Zauner <czauner+ports@onlineloop.com>
#
# $FreeBSD$
#

PORTNAME=   wbxml2
PORTVERSION=    0.9.0
CATEGORIES= textproc devel
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE} \
        http://czauner.onlineloop.com/pub/FreeBSD/distfiles/
MASTER_SITE_SUBDIR= wbxmllib
DISTNAME=   wbxml2-0.9.0-src

MAINTAINER= czauner+ports@onlineloop.com
COMMENT=    Library & tools for converting wbxml<->xml

LIB_DEPENDS=    expat.5:${PORTSDIR}/textproc/expat2

WRKSRC=         ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_LIBTOOL_VER=    15
USE_AUTOMAKE_VER=   19
USE_AUTOCONF_VER=   259
USE_AUTOMAKE_VER=   19
AUTOMAKE_ARGS=      -acf
GNU_CONFIGURE=      yes
INSTALLS_SHLIB=     yes
USE_REINPLACE=      yes
CONFIGURE_ENV=      CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
            LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -lexpat"

post-patch:
    ${REINPLACE_CMD} "s,^CFLAGS,AM_CFLAGS," ${WRKSRC}/src/Makefile.am \
        ${WRKSRC}/Makefile.am ${WRKSRC}/tools/Makefile.am

pre-configure:
    cd ${WRKSRC} && \
        ${LIBTOOLIZE} --force --copy && \
        ${ACLOCAL} -I ${LOCALBASE}/share/aclocal && \
        ${AUTOHEADER} && \
        ${AUTOMAKE} --add-missing && \
        ${AUTOCONF}

.include <bsd.port.mk>