aboutsummaryrefslogtreecommitdiffstats
path: root/misc/ossp-uuid/Makefile
blob: 9522f9985e47119a1592bcdcdaa41ca8d6b297dc (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
# Created by: Kimura Fuyuki <fuyuki@nigredo.org>
# $FreeBSD$

PORTNAME=   uuid
PORTVERSION=    1.6.2
PORTREVISION=   8
CATEGORIES= misc devel
MASTER_SITES=   OSSP/lib/${PORTNAME}
PKGNAMEPREFIX=  ossp-

MAINTAINER= vd@FreeBSD.org
COMMENT=    ISO-C API and CLI for generating Universally Unique Identifiers

GNU_CONFIGURE=  yes
USES+=      libtool pathfix
USE_LDCONFIG=   yes
CONFIGURE_ARGS= --with-cxx \
        --includedir=${PREFIX}/include/ossp

.if defined(SLAVEPORT) && ${SLAVEPORT}=="perl"
PKGNAMEPREFIX=  p5-OSSP-
.endif

regression-test: test

pre-patch:
### Fixes lib conflicts with misc/e2fsprogs-libuuid ###
    ${REINPLACE_CMD} 's/libuuid.la/libossp-uuid.la/ ; s/libuuid++.la/libossp-uuid++.la/' \
        ${WRKDIR}/${DISTNAME}/Makefile.in

test: build
    @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
        ${MAKEFILE} ${MAKE_ARGS} check)

.include <bsd.port.mk>