aboutsummaryrefslogtreecommitdiffstats
path: root/misc/libisocodes/Makefile
blob: e9c8bbe347ec3036468c86e42a6ac70e8ede2fd9 (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
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$

PORTNAME=   libisocodes
PORTVERSION=    1.0
PORTREVISION=   1
CATEGORIES= misc
MASTER_SITES=   http://pkg-isocodes.alioth.debian.org/downloads/

MAINTAINER= kwm@FreeBSD.org
COMMENT=    Interaction library for iso-codes

LICENSE=    GPLv3

BUILD_DEPENDS=  valac:${PORTSDIR}/lang/vala
LIB_DEPENDS=    libgee.so:${PORTSDIR}/devel/libgee06
RUN_DEPENDS=    iso-codes>=0:${PORTSDIR}/misc/iso-codes

USE_XZ=     yes
USES=       gettext gmake libtool pathfix pkgconfig
USE_GNOME=  glib20 gnomehier introspection:build libxml2
GNU_CONFIGURE=  yes

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/share/xml/|${LOCALBASE}/share/xml/|g' \
        ${WRKSRC}/src/iso_15924.* ${WRKSRC}/src/iso_3166* \
        ${WRKSRC}/src/iso_4217.* ${WRKSRC}/src/iso_639* \
        ${WRKSRC}/src/isocodes.* ${WRKSRC}/tests/test_iso_*.vala

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libisocodes.so.0.0.0

.include <bsd.port.mk>