aboutsummaryrefslogtreecommitdiffstats
path: root/misc/libmetalink/Makefile
blob: 68c453e74efcf778da53ccafb9becc5d60dd80d5 (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
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=   libmetalink
PORTVERSION=    0.1.3
CATEGORIES= misc
MASTER_SITES=   https://launchpad.net/${PORTNAME}/trunk/${PORTNAME}-${PORTVERSION}/+download/ \
        LOCAL/sunpoet

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Metalink library written in C language

LICENSE=    MIT

OPTIONS_DEFINE= EXAMPLES TEST
OPTIONS_SINGLE= XML
OPTIONS_SINGLE_XML= EXPAT LIBXML2
OPTIONS_DEFAULT=EXPAT

GNU_CONFIGURE=  yes
INSTALL_TARGET= install-strip
TEST_TARGET=    check
USE_LDCONFIG=   yes
USES=       libtool localbase pathfix tar:xz

PORTEXAMPLES=   LibO_3.5.4_Win_x86_install_multi.msi.meta4 \
        metalinkcat.c \
        ubuntu-12.04-server-amd64.metalink

EXPAT_CONFIGURE_WITH=   libexpat
EXPAT_LIB_DEPENDS=  libexpat.so:${PORTSDIR}/textproc/expat2
LIBXML2_CONFIGURE_WITH= libxml2
LIBXML2_CPPFLAGS=   -I${LOCALBASE}/include/libxml2
LIBXML2_USE=        GNOME=libxml2
TEST_BUILD_DEPENDS= cunit>=2.1:${PORTSDIR}/devel/cunit

post-install-EXAMPLES-on:
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
    cd ${WRKSRC}/doc/examples/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}/

.include <bsd.port.mk>