Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / pkgtools / rpm2pkg / Makefile
blob3861de6d0de951ea28fe5a1f1bc6cb60dae751bf
1 # $NetBSD: Makefile,v 1.62 2012/09/11 23:19:40 asau Exp $
3 DISTNAME= rpm2pkg-3.2.3
4 CATEGORIES= pkgtools
5 MASTER_SITES= # empty
6 DISTFILES= # empty
7 NO_CHECKSUM= yes
9 OWNER= tron@NetBSD.org
10 HOMEPAGE= http://www.pkgsrc.org/
11 COMMENT= Convert RPM archives to NetBSD packages
12 LICENSE= modified-bsd
14 CONFLICTS+= suse-base<=6.4
16 MANCOMPRESSED_IF_MANZ= yes
17 USE_BSD_MAKEFILE= yes
18 USE_LANGUAGES= c99
20 MAKE_ENV+= FILESDIR=${FILESDIR:Q}
21 MAKE_FILE= ${FILESDIR}/Makefile
22 WRKSRC= ${WRKDIR}
24 INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
26 .include "../../mk/compiler.mk"
28 .if !empty(CC_VERSION:Mclang*)
29 MAKE_FLAGS+= ACTIVE_CC=clang
30 .endif
32 .include "../../mk/bsd.prefs.mk"
34 .if defined(PKG_DEVELOPER) && ${PKG_DEVELOPER} != "no"
35 MAKE_ENV+= WARNS=4
36 .else
37 MAKE_ENV+= NOGCCERROR=yes
38 .endif
40 do-install:
41 ${INSTALL_PROGRAM} ${WRKSRC}/rpm2pkg ${DESTDIR}${PREFIX}/sbin
42 ${INSTALL_MAN} ${FILESDIR}/rpm2pkg.8 \
43 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
45 .include "../../archivers/bzip2/buildlink3.mk"
46 .include "../../archivers/xz/buildlink3.mk"
47 .include "../../devel/zlib/buildlink3.mk"
48 .include "../../mk/bsd.pkg.mk"