freebsd-ports/misc/ossp-uuid/Makefile
Erwin Lansing 50513d5d52 Add support for DESTDIR part I.
This commit should largele be a NOOP as it only adds support
for DESTDIR undefined. This does allow us to start testing
ports with DESTDIR set, but this is as of yet not supported.

Although this has been extensively tested on pointyhat, this
is a very intrusive change and some cases may have been
overlooked. Please contact Gabor and me if you find any.

PR:             100555
Submitted by:   gabor
Sponsored by:   Google Summer of Code 2006
2006-08-04 12:34:50 +00:00

49 lines
1.1 KiB
Makefile

# New ports collection makefile for: OSSP uuid
# Date created: 12 February 2004
# Whom: Kimura Fuyuki <fuyuki@nigredo.org>
#
# $FreeBSD$
#
PORTNAME= uuid
PORTVERSION= 1.5.1
CATEGORIES= misc devel
MASTER_SITES= ${MASTER_SITE_OSSP}
MASTER_SITE_SUBDIR= lib/${PORTNAME}
PKGNAMEPREFIX= ossp-
MAINTAINER= vd@FreeBSD.org
COMMENT= ISO-C & Perl API and CLI for generating Universally Unique Identifiers
CONFLICTS= e2fsprogs-libuuid-[0-9]*
USE_GCC= 3.2+
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --disable-shared --enable-static --mandir=${PREFIX}/man
MAN1= uuid-config.1 uuid.1
MAN3= uuid.3
.if defined(WITH_PERL)
USE_PERL5= yes
CONFIGURE_ENV+= PERL=${PERL5}
CONFIGURE_ARGS+= --with-perl
PLIST_SUB+= WITH_PERL=''
MAN3= OSSP::uuid.3
MAN3PREFIX= ${TARGETDIR}/lib/perl5/${PERL_VERSION}
.else
PLIST_SUB+= WITH_PERL='@comment '
.endif
.include <bsd.port.pre.mk>
.if defined(WITH_PERL) && ${PERL_LEVEL} < 500800
IGNORE= supports Perl 5.8.0 or above only
.endif
test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check
.include <bsd.port.post.mk>