aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.pbi.mk
blob: 514d1433bae0f7688708c4647d14f9821b26fdd8 (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
# $FreeBSD$
#
# Creates a PBI file from a port with just 'make pbi'
#
.if !defined(_INCLUDE_PBI_MK)

_INCLUDE_PBI_MK=    yes
PBI_MAINTAINER=     kmoore@FreeBSD.org

_PBIMAKEPORT=   pbi_makeport
_PBICREATE= pbi_create
_PBIDIR=    pbi
_PBICONF=   ${_PBIDIR}/pbi.conf

.PHONY: check-pbimanager pbi pbi-makeport pbi-generate pbi-create \
    clean-pbi clean-pbibuild

check-pbimanager:

    @set -- chk=""; \
    if [ -z "`which pbi_info`" ] ; then \
        cd ${PORTSDIR}/sysutils/pcbsd-utils && make install clean; \
    fi

pbi: pbi-generate

pbi-generate: check-pbimanager
    @_PBIPORT=`pwd | cut -d "/" -f4-`; \
    if [ ! -d ${PWD}/pbi ] ; then                   \
        ${ECHO_MSG} "===> Generating meta-data for ${PORTNAME}";    \
        ${MKDIR} ${_PBIDIR};                    \
        ${MKDIR} ${_PBIDIR}/resources ${_PBIDIR}/scripts    \
            ${_PBIDIR}/xdg-desktop ${_PBIDIR}/xdg-menu  \
            ${_PBIDIR}/xgd-mime;                \
        ${ECHO_CMD} "PBI_PROGNAME=\"${PORTNAME}\"" > ${_PBICONF};\
        ${ECHO_CMD} "PBI_MAKEPORT=\"$${_PBIPORT}\"" >> ${_PBICONF};\
        PROGWEB=`cat ${DESCR} | awk '/^WWW:/ { print $$2; }'`;  \
        ${ECHO_CMD} "PBI_PROGWEB=\"$${PROGWEB}\"" >> ${_PBICONF};\
        ${ECHO_CMD} "PBI_PROGAUTHOR=\"The ${PORTNAME} team\""   \
             >> ${_PBICONF};                \
        ${ECHO_CMD} "PBI_UPDATEURL=\"http://update.pbidir.com\""\
             >> ${_PBICONF};                \
        ${ECHO_CMD} "export PBI_PROGNAME PBI_MAKEPORT "     \
            "PBI_PROGWEB "                  \
            "PBI_PROGAUTHOR PBI_UPDATEURL " \
            "PBI_MKPORTBEFORE PBI_MKPORTAFTER PBI_MAKEOPTS" \
             >> ${_PBICONF};                \
    fi
    @${ECHO_MSG} "==> Generating PBI file"
    @${_PBIMAKEPORT} -c ${PWD}/pbi -o ${PWD} $${_PBIPORT}

clean-pbi:
    @${ECHO_MSG} "===> Cleaning PBI for ${PORTNAME}"
    @${RM} -rf ${_PBIDIR}

.endif
an> * - Add missing run dependency on perlantoine2014-12-231-2/+4 * Shebangfixantoine2014-12-231-1/+3 * Update to 0.9.37.1 release.ale2014-12-232-6/+4 * devel/py-palm: add missing dependenciesrm2014-12-232-3/+12 * Use DIST_SUBDIR for rolling distfilesjohans2014-12-232-8/+10 * Mark BROKEN: Depends on conflicting py-requests1 and py-requests (via py-requ...antoine2014-12-231-0/+2 * - Update to version 1.5 [1]pawel2014-12-233-7/+7 * Release pkg 1.4.1 and 1.4.99.1bapt2014-12-234-6/+6 * Fix plist.jkim2014-12-231-0/+1 * Remove empty filesantoine2014-12-231-0/+0 * Update mesa based ports to 10.4.0.kwm2014-12-238-87/+47 * - Add perl5 to CATEGORIESpawel2014-12-231-2/+3 * Fix build on FreeBSD 8.x and 9.x by using gmakepawel2014-12-233-3/+67 * Reads a gps track in GPX format and writes out an Google Map or OpenStreetMapspawel2014-12-234-0/+55 * - Convert to new options helperdelphij2014-12-231-9/+3 * This Perl module is to plot graphs using GNUPLOT on the fly.pawel2014-12-234-0/+34 * Do not let Perl's Configure finds out if it needs to use nm or not. It shouldmat2014-12-234-4/+4 * Grab maintainershiprm2014-12-231-1/+1 * Update "BSD" licensefeld2014-12-231-2/+1 * Update "BSD" license for buganini's portsfeld2014-12-239-9/+10 * - Drop @dirrm* from plistamdmi32014-12-231-3/+0 * Update "BSD" license in devel categoryfeld2014-12-2371-75/+90 * Fix typo in Makefile.cpanmatthew2014-12-231-1/+1 * darktable: Update to 1.6.1dumbbell2014-12-232-3/+3 * security/p5-GD-SecurityImage: knob to allow correct DEPENDS for IMAGEMAGICKpi2014-12-231-4/+14 * - Revert the previous NIS check, since it does not help at allmva2014-12-234-4/+4 * - Add license (yes, it's quite restrictive - no commercial and modified packa...amdmi32014-12-232-2/+5 * security/suricata: Update to 2.0.5, Add NSS supportkoobs2014-12-223-53/+72 * Changes to allow booting from eMMC on a Beaglebone Black. Using theian2014-12-222-39/+33 * www/squid: implement proper backtrace supportrea2014-12-222-1/+128 * Upgrade to 3.7.2.thierry2014-12-222-4/+3 * devel/libhtp: Update to 0.5.16koobs2014-12-222-8/+7 * - Fix issue on restart after reboot, fcgiwrap doesn't handlerodrigo2014-12-222-6/+84 * Upgrade to 1.8.0.vanilla2014-12-224-41/+45 * - Update to 1.10.9madpilot2014-12-222-6/+5 * Update gstreamer1-libav to 1.4.5.kwm2014-12-222-4/+3 * net/ngrep: Add Capcisum sandboxing supportkoobs2014-12-223-18/+132 * Update texinfo.tex and texi2dvi to latest releasejohans2014-12-222-5/+5 * - Update to version 1.4.12.20mva2014-12-223-4/+4 * - Update to slrn 1.0.2johans2014-12-223-12/+6 * [NEW] devel/py-future: Clean single-source support for Python 3 and 2koobs2014-12-224-0/+31 * Update to Coq 8.4pl5johans2014-12-223-5/+3 * Fix path in makefile.in rather than moving in post-install targetjohans2014-12-222-4/+3 * Update Gstreamer framework to 1.4.5.kwm2014-12-2246-65/+57 * Remove trailing empty linebapt2014-12-221-1/+0 * - Shebangfixantoine2014-12-223-42/+21 * - Update ocurl to 0.7.2johans2014-12-224-10/+12 * - Python 3.x: try to improve the NIS detection for FreeBSDmva2014-12-223-6/+6 * lang/python27: Update to 2.7.9mva2014-12-226-106/+73 * Shebangfixantoine2014-12-221-2/+3 * - Update to ocaml-pcre 7.1.5johans2014-12-223-5/+14 * Cleanupantoine2014-12-221-4/+2 * - Update qDecoder to 12.0.5johans2014-12-224-22/+13 * Unbreak MX4200.cy2014-12-222-5/+26 * Update to 2.6.5madpilot2014-12-225-85/+95 * Correct plist and pet portlintjohans2014-12-222-17/+11 * Update to lynx 2.8.9 dev 2johans2014-12-222-7/+6 * MX4200 is still broken.cy2014-12-221-1/+5 * Properly address IPV6 loopback check.cy2014-12-223-32/+23 * security/py-requests-oauthlib: Update to 0.4.2koobs2014-12-223-26/+14 * security/py-oauthlib: Update to 0.7.2, Add OPTIONSkoobs2014-12-223-20/+25 * textproc/topic: Update to 1.04koobs2014-12-224-5/+7 * net/ntimed: Add rc startup scriptkoobs2014-12-222-4/+42 * Welcome ntimed to the ports tree. This is a new NTP client authored byfeld2014-12-224-0/+40 * Add USES=desktop-file-utils as suggested by stage-qa. [1][2]gerald2014-12-222-3/+26 * Bump PORTREVISION to 2 to reflect libgcc being added to the package.ian2014-12-221-8/+9 * Conditionally assign variables so that slave ports can override them.ian2014-12-221-4/+4 * Remove useless USESbapt2014-12-221-2/+0 * Restore old maintainer but with new email address.linimon2014-12-221-1/+1 * Update to version 5.7.2pawel2014-12-222-4/+3 * Update to 1.2.0antoine2014-12-222-4/+7 * * ETCDIR should be chgrp bacula so the configuration files can be be read bydvl2014-12-228-23/+11 * - Convert to pkg-plistak2014-12-222-10/+9 * Shebangfixantoine2014-12-221-1/+3 * Shebangfixantoine2014-12-221-1/+2 * Shebangfixantoine2014-12-221-1/+3 * Shebangfixantoine2014-12-221-1/+3 * Shebangfixantoine2014-12-221-1/+3 * - Add missing run dependency on perlantoine2014-12-221-1/+4 * Shebangfixantoine2014-12-221-2/+3 * - Update to 10.1.2amdmi32014-12-223-16/+4 * Fix shebangantoine2014-12-221-1/+2 * - Shebangfixantoine2014-12-222-6/+3 * - Shebangfixantoine2014-12-221-1/+4 * bspwm is a tiling window manager that represents windows as the leavespawel2014-12-227-0/+83 * Shebangfixantoine2014-12-221-1/+3 * Shebangfixantoine2014-12-221-1/+3 * - Fix build on arm6amdmi32014-12-221-1/+10 * - Strip libraryamdmi32014-12-221-0/+1 * - Add LICENSEamdmi32014-12-223-14/+5 * - Silence patchingamdmi32014-12-222-5/+3 * - Drop @dirrm* from plistamdmi32014-12-222-8/+2 * - Strip librariesamdmi32014-12-221-0/+4 * Put back the plugin directory in the plistantoine2014-12-221-1/+2 * Put back empty dirs in plistantoine2014-12-223-3/+6 * Update to version 1.4.8pawel2014-12-223-5/+4 * Put back empty dir in plistantoine2014-12-221-0/+2 * Builds and works on armv6pawel2014-12-221-1/+1 * Remove fabs() hack. This header gets installed and breaks some IM users.kwm2014-12-221-58/+0 * Update to 1.4.2olivierd2014-12-222-4/+3 * Upgrade to 0.24.vanilla2014-12-222-4/+4 * Update to 1.3.9feld2014-12-222-8/+25 * Update "BSD" license in www categoryfeld2014-12-22