aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.linux-rpm.mk
blob: 7989922b3f1e80c23f012feeed931a57c6691aa5 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#-*- mode: Makefile; tab-width: 4; -*-
# ex:ts=4
#
# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.linux-rpm.mk,v 1.1 2006-01-21 17:37:01 krion Exp $
#

.if !defined(_POSTMKINCLUDED) && !defined(Linux_RPM_Pre_Include)

Linux_RPM_Include_MAINTAINER=   jylefort@FreeBSD.org
Linux_RPM_Pre_Include=          bsd.linux-rpm.mk

RPM2CPIO?=          ${LOCALBASE}/bin/rpm2cpio

EXTRACT_SUFX?=      .${LINUX_RPM_ARCH}.rpm

USE_LINUX?=         yes
USE_LINUX_PREFIX=   yes

NO_WRKSUBDIR=       yes
NO_BUILD=           yes

.  if ${ARCH} == "amd64"
LINUX_RPM_ARCH?=    i386    # the linuxulator does not yet support amd64 code
.  elif ${ARCH} == "powerpc"
LINUX_RPM_ARCH?=    ppc
.  else
LINUX_RPM_ARCH?=    ${ARCH}
.  endif

.endif

.if defined(_POSTMKINCLUDED) && !defined(Linux_RPM_Post_Include)

Linux_RPM_Post_Include= bsd.linux-rpm.mk

MASTER_SITES?=          ${MASTER_SITE_FEDORA_LINUX}
MASTER_SITE_SUBDIR?=    3/${LINUX_RPM_ARCH}/os/Fedora/RPMS/
PKGNAMEPREFIX?=         linux-

EXTRACT_DEPENDS+=       ${RPM2CPIO}:${PORTSDIR}/archivers/rpm

EXTRACT_CMD?=           ${RPM2CPIO}
EXTRACT_BEFORE_ARGS?=
EXTRACT_AFTER_ARGS?=    | ${CPIO} -id --quiet

MD5_FILE?=              ${MASTERDIR}/distinfo.${LINUX_RPM_ARCH}

.  if defined(AUTOMATIC_PLIST)

.    if ${USE_LINUX} == "8" || ${USE_LINUX:L} == "yes"
_LINUX_BASE_SUFFIX=     8
.    elif ${USE_LINUX} == "debian"
_LINUX_BASE_SUFFIX=     debian
.    else
# other linux_base ports do not provide a pkg-plist file
IGNORE=                 uses AUTOMATIC_PLIST with an unsupported USE_LINUX, \"${USE_LINUX}\". Supported values are \"yes\", \"8\" and \"debian\"
.    endif

PLIST?=                 ${WRKDIR}/.PLIST.linux-rpm

pre-install: linux-rpm-generate-plist

linux-rpm-generate-plist:
    @cd ${WRKSRC} && \
    ${FIND} * ! -type d | ${SORT} > ${PLIST} && \
    ${FIND} * -type d | ${SORT} | ${SED} -e 's|^|@dirrm |' > ${PLIST}.dirs
    @${GREP} '^@dirrm ' ${PORTSDIR}/emulators/linux_base-${_LINUX_BASE_SUFFIX}/pkg-plist | ${SORT} > ${PLIST}.shared-dirs
    @${COMM} -1 -3 ${PLIST}.shared-dirs ${PLIST}.dirs | ${SORT} -r >> ${PLIST}

.  endif

.  if !target(do-install)
do-install:
    cd ${WRKSRC} && ${FIND} * -type d -exec ${MKDIR} "${PREFIX}/{}" \;
    cd ${WRKSRC} && ${FIND} * ! -type d | ${CPIO} -pm -R root:wheel ${PREFIX}
.  endif

.  if !target(new-plist)
new-plist:
    @${RM} -rf ${WRKDIR}/.new-plist
    @${MKDIR} ${WRKDIR}/.new-plist
    @cd ${WRKDIR}/.new-plist && \
    for f in ${DISTFILES}; do \
        ${RPM2CPIO} ${_DISTDIR}/$$f | ${CPIO} -id --quiet; \
        ${FIND} * ! type d | ${SORT} > ${PLIST}.new; \
        ${FIND} -d * -type d | ${SED} -e 's|^|@dirrm |' >> ${PLIST}.new; \
    done
.  endif

.endif
43d24dcc258b0c6109e590c0c2dc00ef48f12'>Strip libraryehaupt2015-02-251-1/+3 * Those ports do not build with php 5.6antoine2015-02-251-1/+1 * audio/patchage: Set environment during make and install phasesmarino2015-02-251-3/+5 * audio/esperanza: Respect CXXFLAGS (PHB 12.9) and friendsmarino2015-02-251-2/+5 * remove DEFAULT_VERSIONS.vanilla2015-02-251-1/+0 * - Switch my ports to USE_QT4=linguisttools_build and adjust Qt componentsmakc2015-02-251-1/+1 * - Add LICENSEamdmi32015-02-241-0/+6 * - Add LICENSE_FILEamdmi32015-02-241-0/+2 * Update to 0.1.21ehaupt2015-02-243-8/+9 * Use INSTALL_TARGET=install-stripgblach2015-02-241-0/+1 * Update to 2.10gblach2015-02-243-5/+4 * - Fix pkg-plistehaupt2015-02-242-10/+1 * 1: add LICENSE.vanilla2015-02-241-2/+4 * audio/py-mutagen: version updaterm2015-02-222-4/+4 * audio/slv2: Set the make environment on the do-build targetmarino2015-02-201-5/+7 * - Strip libraryamdmi32015-02-201-0/+3 * audio/ocp: Fix configure script to support gcc-5 (from upstream)marino2015-02-201-0/+11 * - Remove deprecated USE_KDE4=kdehiermakc2015-02-206-6/+5 * audio/taglookup: Respect CXXFLAGS (PHB 12.9)marino2015-02-191-8/+13 * Add audio/cantata.rakuco2015-02-197-0/+143 * audio/easytag: 2.2.4 -> 2.2.6, NLS fixpi2015-02-173-6/+7 * Upgrade to 6.04.vanilla2015-02-175-26/+36 * Upgrade to 1.3.2.vanilla2015-02-172-8/+11 * Upgrade to 0.3.12.vanilla2015-02-173-14/+11 * Upgrade to 1.0.r1.vanilla2015-02-176-72/+37 * Improve style/consistency among the ports I maintainjbeich2015-02-161-2/+3 * - Update to 2.3.1nivit2015-02-113-8/+11 * - Update to 1.48.04nivit2015-02-093-24/+30 * Upgrade to a newer snapshot, including a fix for an installation problem.thierry2015-02-092-4/+6 * - Update to 15.01nivit2015-02-093-11/+83 * Ignore on the package buildersantoine2015-02-091-1/+7 * Use better syntax for option helperbapt2015-02-081-1/+1 * Use options helpersbapt2015-02-081-15/+6 * Use options helpersbapt2015-02-081-25/+6 * Use options helpersbapt2015-02-081-11/+4 * Use options helpersbapt2015-02-081-8/+2 * Make FFTW3 support proper optionsbapt2015-02-081-7/+8 * Update to 4.3.5ehaupt2015-02-082-3/+3 * Lollypop is music player. It provides:olivierd2015-02-086-0/+150 * Update to upstream version 1.7.0riggs2015-02-073-16/+14 * - Fix build on < 10.x after webkit-gtk2 updateamdmi32015-02-041-0/+1 * - Fix volume readingume2015-02-043-7/+13 * Upgrade from 0.41 to 0.42. Use configure and otherwise simplify themi2015-02-034-36/+210 * Take back maintainershipbapt2015-02-032-14/+7 * Remove expired ports:rene2015-02-034-48/+0 * - Update to 0.79amdmi32015-02-033-7/+14 * Update to version 1.3.9jbeich2015-01-303-3/+4 * Remove expired ports:rene2015-01-2936-898/+0 * - Update to 14.12amdmi32015-01-272-4/+3 * - Fix location to atunes binary in atunes.desktoplme2015-01-271-2/+2 * Fix RUN_DEPENDSantoine2015-01-261-1/+1 * Fix detection of libportaudio librariespawel2015-01-259-16/+11 * Fix LIB_DEPENDSantoine2015-01-251-3/+3 * Revert fix-- incorrectcrees2015-01-251-5/+0 * Fix some _DEPENDSantoine2015-01-252-3/+4 * Switch some dependencies from a directory name or a file generated by pkg-ins...antoine2015-01-243-3/+3 * - Add mediastreamer support so the codec can be used in Linphonetijl2015-01-242-5/+15 * - Update to 1.3.261amdmi32015-01-235-4/+29 * Pass CFLAGS and LDFLAGS by default to scons build, againjbeich2015-01-231-0/+1 * Per convention change my address to @FreeBSD.orgjbeich2015-01-213-3/+3 * audio/libamr*: change INSTALL_TARGET to install-stripmarino2015-01-212-3/+8 * Upgrade to 0.46-5.vanilla2015-01-202-3/+3 * remove uneeded patch.vanilla2015-01-201-110/+0 * Upgrade to 0.5.7.2.vanilla2015-01-203-4/+4 * - Fix misspelled armv6amdmi32015-01-201-2/+1 * Update gnome-music to 3.14.3.kwm2015-01-202-5/+3 * Remove redundant @execbapt2015-01-201-2/+0 * Remove redundant @exec (USES=shared-mime-info handles it already)bapt2015-01-201-2/+0 * Upgrade to 1.7.3.vanilla2015-01-192-4/+3 * - Use INSTALL_TARGET=install-strip instead of STRIP_CMDsunpoet2015-01-191-3/+1 * Require building with GCC 4.8 due to non-conforming C++ code.gerald2015-01-191-1/+2 * Update ImageMagick to 6.9.0.4.kwm2015-01-191-2/+2 * Compile libresidc.a with -fPIC. The library isn't installed but is linkedtijl2015-01-193-3/+12 * - Update to 2.5.0amdmi32015-01-183-52/+71 * Remove useless @dirrmbapt2015-01-181-1/+0 * Remove useless @dirrmbapt2015-01-181-1/+0 * Remove useless @dirrmbapt2015-01-181-2/+0 * - Remove vestiges of alpha supportak2015-01-161-4/+0 * Update sound-juicer to 3.14.0.kwm2015-01-162-5/+3 * Add missing USE_OPENSSL=yestijl2015-01-15