2014-03-03 03:37:23 +01:00
|
|
|
# $NetBSD: Makefile,v 1.65 2014/03/03 02:40:34 obache Exp $
|
2001-01-25 09:57:53 +01:00
|
|
|
|
2014-03-03 03:37:23 +01:00
|
|
|
PKGNAME= rpm2pkg-3.2.3
|
2001-01-25 09:57:53 +01:00
|
|
|
CATEGORIES= pkgtools
|
2010-09-04 21:23:00 +02:00
|
|
|
NO_CHECKSUM= yes
|
2001-01-25 09:57:53 +01:00
|
|
|
|
2008-05-25 22:49:39 +02:00
|
|
|
OWNER= tron@NetBSD.org
|
2011-01-12 01:26:33 +01:00
|
|
|
HOMEPAGE= http://www.pkgsrc.org/
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= Convert RPM archives to NetBSD packages
|
2009-05-19 10:59:00 +02:00
|
|
|
LICENSE= modified-bsd
|
2001-01-25 09:57:53 +01:00
|
|
|
|
|
|
|
CONFLICTS+= suse-base<=6.4
|
|
|
|
|
2011-01-12 01:26:33 +01:00
|
|
|
MANCOMPRESSED_IF_MANZ= yes
|
|
|
|
USE_BSD_MAKEFILE= yes
|
|
|
|
USE_LANGUAGES= c99
|
2013-09-08 18:29:43 +02:00
|
|
|
MAKE_FLAGS+= CWARNFLAGS.clang=-Wno-error=missing-noreturn
|
2001-06-18 23:32:23 +02:00
|
|
|
|
2011-01-12 01:26:33 +01:00
|
|
|
MAKE_ENV+= FILESDIR=${FILESDIR:Q}
|
|
|
|
MAKE_FILE= ${FILESDIR}/Makefile
|
|
|
|
WRKSRC= ${WRKDIR}
|
2004-02-18 22:29:37 +01:00
|
|
|
|
2011-01-19 17:23:02 +01:00
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
|
2001-01-25 09:57:53 +01:00
|
|
|
|
2013-02-21 23:39:58 +01:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
|
|
|
.if !empty(CC_VERSION:Mclang*)
|
|
|
|
MAKE_FLAGS+= ACTIVE_CC=clang
|
|
|
|
.endif
|
|
|
|
|
2011-04-13 00:36:11 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if defined(PKG_DEVELOPER) && ${PKG_DEVELOPER} != "no"
|
|
|
|
MAKE_ENV+= WARNS=4
|
|
|
|
.else
|
|
|
|
MAKE_ENV+= NOGCCERROR=yes
|
|
|
|
.endif
|
2002-08-25 21:43:33 +02:00
|
|
|
|
2011-01-19 17:23:02 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rpm2pkg ${DESTDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_MAN} ${FILESDIR}/rpm2pkg.8 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
|
|
|
|
2011-04-13 00:36:11 +02:00
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
|
|
|
.include "../../archivers/xz/buildlink3.mk"
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2001-01-25 09:57:53 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|