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

PORTNAME=   metalink
PORTVERSION=    0.3.6
PORTREVISION=   4
CATEGORIES= misc
MASTER_SITES=   SF/metalinks/Metalink%20commandline/${PORTVERSION}
PKGNAMESUFFIX?= -tools

MAINTAINER= ports@FreeBSD.org
COMMENT=    Metalink generation tool

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libgcrypt.so:${PORTSDIR}/security/libgcrypt \
        libglibmm-2.4.so:${PORTSDIR}/devel/glibmm \
        libgpg-error.so:${PORTSDIR}/security/libgpg-error \
        libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20

USE_GNOME=  glib20
GNU_CONFIGURE=  yes
USES=       pkgconfig
CONFIGURE_ENV+= AWK="${AWK}"
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

PORTDOCS=   README
PLIST_FILES=    bin/${PORTNAME}

OPTIONS_DEFINE= DOCS

do-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>