aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/php-gdal/Makefile
blob: 1e32e00c56d9a174d2d03dda64b8f6799e972ea4 (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
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$

PORTNAME=   gdal
PORTVERSION=    1.11.2
CATEGORIES= graphics
MASTER_SITES=   http://download.osgeo.org/gdal/ \
        ftp://ftp.remotesensing.org/pub/gdal/ \
        LOCAL/sunpoet
PKGNAMEPREFIX=  php-

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    PHP binding for GDAL

LICENSE=    MIT

BUILD_DEPENDS=  ${LOCALBASE}/bin/swig3.0:${PORTSDIR}/devel/swig30
LIB_DEPENDS=    libgdal.so:${PORTSDIR}/graphics/gdal

ALL_TARGET= php_gdal.so php_gdalconst.so php_ogr.so php_osr.so
CFLAGS+=    -I${LOCALBASE}/include -fPIC
MAKEFILE=   GNUmakefile
PHP_MOD_NAME=   php_${PORTNAME}
USE_PHP=    yes
USE_PHP_BUILD=  yes
USES=       gmake tar:xz

WRKSRC=     ${WRKDIR}/${DISTNAME}/swig/php

post-patch:
    @${REINPLACE_CMD} -e '/^SWIG = swig/ s|$$|3.0|' ${WRKSRC}/../SWIGmake.base
    @${REINPLACE_CMD} -e 's|^CC=.*$$|CC=${CC}|; s|^CXX=.*$$|CXX=${CXX}|; s|^CFLAGS=.*$$|CFLAGS=${CFLAGS}|' ${WRKSRC}/${MAKEFILE}

# include/cpl_config.h will exist after build phase
pre-build:
    ${SED} -e '/^GDAL_ROOT/d' ${DATADIR}/GDALmake.opt > ${WRKSRC}/../../GDALmake.opt
    ${CP} ${LOCALBASE}/include/cpl_config.h ${WRKSRC}/../../port/

do-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/ ${STAGEDIR}${PREFIX}/include/php/ext/${PORTNAME}/
    ${INSTALL_LIB} ${WRKSRC}/*.so ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/
    ${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/php/ext/${PORTNAME}/

.include <bsd.port.mk>
/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/french?h=gnome-3.24&id=2e8074dadec7fd109dfdd1219ec0f5fc849d66b3'>Update to 4.1.6.jkim2014-05-071-4/+4 * Catch a couple of missing convertsion to :tu/:tlbapt2014-05-051-1/+1 * Convert all :U to :tu and :L to :tlbapt2014-05-051-2/+2 * - Update to 1.8.12 (from science/hdf5-18)sunpoet2014-05-032-3/+4 * When linking a library libA with a library libB using libtool, if libB.latijl2014-04-231-1/+2 * Unbreak with the work-around given by Vladimir Chukharev in PR ports/188114thierry2014-04-182-8/+11 * The FreeBSD x11@ and graphics team proudly presentszeising2014-04-171-0/+1 * Restore the previous sed to fix python.thierry2014-04-101-1/+3 * - Support staging;thierry2014-04-102-10/+6 * Eric4 ports: update to version 4.5.21.bsam2014-04-061-2/+2 * KDE/FreeBSD team presents KDE SC 4.12.4 and KDE Workspace 4.11.8!makc2014-04-031-2/+2 * Upgrade Code_Aster to 11.5.0-4.thierry2014-03-1925-1904/+1728 * Update to version 4.5.20.bsam2014-03-141-2/+2 * Update the default version of GCC used in the Ports Collection fromgerald2014-03-115-5/+5 * Fix to use proper zip argbapt2014-03-081-1/+1 * Convert f* to USES=zipbapt2014-03-084-4/+4 * Mark BROKEN: Unfetchableantoine2014-03-071-0/+1 * KDE/FreeBSD team presents KDE SC 4.12.3 and KDE Workspace 4.11.7!makc2014-03-052-7/+40 * - Support stagingculot2014-02-281-3/+2 * Update to 4.1.5. It is partially based on the following PR.jkim2014-02-261-4/+4 * Use ${LDFLAGS} instead of constructing -L${LOCALBASE}/lib/${CC} manuallygerald2014-02-241-1/+1 * - Bump PORTREVISION after KDE4_PREFIX changemakc2014-02-181-0/+1 * KDE/FreeBSD team presents KDE SC 4.12.2 and KDE Workspace 4.11.6!makc2014-02-184-219/+107 * - Update to USES=tkgahr2014-02-181-2/+1 * - Convert to USES=tkgahr2014-02-181-4/+2 * Convert all USE_FORTRAN=yes to "USES=fortran, USE_GCC=yes". In most casestijl2014-02-172-6/+2 * - Swith from easy_install to install (and bump PORTREVISION)antoine2014-02-094-40/+6 * - Kill french/gfaim -- abandonwaregahr2014-02-056-118/+0 * - Update gimp-help ports to 2.8.1. Polish translation has been removed, newmakc2014-02-011-3/+3 * Remove ispell which is deprecated for long, consider using aspell instead or ...bapt2014-01-292-13/+0 * Fix properties on pkg-plistbapt2014-01-221-1/+0 * - Update to 5.0.2sunpoet2014-01-212-3/+3 * french/alphabet_sounds_fr: Fix and support stagemarino2014-01-163-17/+52 * Python cleanup:rene2014-01-141-1/+1 * . update to version 4.5.18;bsam2014-01-081-2/+2 * Update to version 4.5.17.bsam2013-12-251-2/+2 * - Update Calligra Suite to 2.7.5.avilla2013-12-173-5/+35 * - Fix the usage of 'python' to get rid of the implicit lang/pythonmva2013-12-151-0/+5 * Update to 5.0.1bapt2013-12-112-3/+3 * . svn copy tryton -> tryton28 ports;bsam2013-11-216-1/+49 * Restore "created by" header missing at some trytond* ports (in preparationbsam2013-11-181-0/+1 * Support STAGE (in preparation to commit PR/181691)..bsam2013-11-181-1/+0 * - Add my LOCAL to MASTER_SITESsunpoet2013-11-182-3/+4 * - Add my LOCAL to MASTER_SITESsunpoet2013-11-182-3/+4 * - Update to 4.12sunpoet2013-11-182-6/+7 * - Use single space after WWW:sunpoet2013-11-183-3/+3 * Fix stagingbapt2013-11-151-1/+1 * Update to version 4.5.15.bsam2013-11-111-2/+2 * Stagifybapt2013-11-041-1/+1 * Stagifybapt2013-11-041-6/+5 * Support stage, use bsdtar to extractbapt2013-11-041-1/+1 * Stagifybapt2013-11-041-1/+0 * Update to libmpc version 1.0.1 which brings the following fixes:gerald2013-10-265-3/+5 * - Update to 4.0.6.jkim2013-10-262-5/+4 * - Remove manual creation and removal of share/applications, as it's now in th...amdmi32013-10-222-2/+0 * Update to version 4.5.15.bsam2013-10-091-2/+2 * . support staging;bsam2013-10-061-1/+0 * Support stagebapt2013-09-241-4/+3 * Support stagebapt2013-09-241-6/+5 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-2128-58/+39 * Update to version 4.5.14.bsam2013-08-231-2/+2 * Update to 4.0.5.jkim2013-08-231-4/+4 * - Convert to new perl frameworkaz2013-07-311-6/+3 * KDE3 and QT3 expired on 2013-07-01, remove these ports.rene2013-07-275-2642/+0 * Fix INDEX by really fixing the kde4-l10n portsbapt2013-07-101-0/+1 * KDE4 l10n fixes.rakuco2013-07-102-3/+1 * Update to version 4.5.13.bsam2013-07-081-2/+2 * Update the KDE Software Compilation to 4.10.5.rakuco2013-07-051-2/+2 * Update to KDE SC 4.10.4, proudly presented by the KDE on FreeBSD team.rakuco2013-07-032-2/+3 * Update to 4.0.4.jkim2013-06-201-4/+4 * - Set MASTER_SITES to MASTER_SITE_LOCAL due to the decommissioning ofculot2013-06-161-6/+3 * - Fix i18n manpagesmiwi2013-06-111-0/+3 * Update to version 4.5.12.bsam2013-06-101-2/+2 * - Update MASTER_SITES and COMMENTwen2013-05-191-3/+4 * KDE/FreeBSD team presents KDE SC 4.10.3 ports!makc2013-05-193-4/+12 * Update to 4.0.3.jkim2013-05-101-4/+4 * - Convert USE_ICONV=yes to USES=iconvmva2013-04-271-2/+1 * - Convert USE_GETTEXT to USES (part 4)ak2013-04-261-1/+1 * - Convert USE_GETTEXT to USES (part 2)ak2013-04-241-1/+1 * Convert f* to USES=pkgconfigbapt2013-04-231-2/+1 * Update to version 4.5.10.bsam2013-04-231-2/+2 * Update to 4.0.2.jkim2013-04-171-4/+4 * - Update Calligra and l10n ports to 2.6.2:avilla2013-03-302-35/+4 * KDE/FreeBSD team presents KDE SC 4.10.1 ports!makc2013-03-274-31/+72 * Finish converting french to new options frameworkbapt2013-03-261-13/+10 * Fix plist.thierry2013-03-232-0/+4 * Remove french/eficas_doc.thierry2013-03-206-618/+0 * Chase Code_Aster's upgrade.thierry2013-03-201-6/+2 * Upgrade to 3.0.6.thierry2013-03-202-14/+8 * Upgrade to 6.6.0-2.thierry2013-03-204-224/+177 * Upgrading Code_Aster to 10.8.0-3.thierry2013-03-206-100/+73 * french/gibi: IGNORE for more than 6 monthseadler2013-03-198-177/+0 * - Add translation of the restricted lineeadler2013-03-191-5/+3 * Update to version 4.5.9.bsam2013-03-112-3/+2 * Update to 4.0.1.jkim2013-03-091-4/+4 * Convert USE_BISON to USES= bisonbapt2013-03-081-6/+2 * - remove german, french and japanese localization of www/MT. They wererm2013-02-243-22/+0 * Merge from area51 repository:makc2013-02-053-3/+37 * Update to 3.6.5.jkim2013-02-051-4/+4 * KDE/FreeBSD team presents KDE SC 4.9.5 ports!makc2013-02-044-49/+300 * Bump PORTREVISON after devel/py-sip and devel/qscintilla2 update.makc2013-02-047-3/+7 * Bump PORTREVISION after DESKTOP_ENTRIES updatemakc2013-01-231-1/+1 * - Change MAINTAINER addresstabthorpe2013-01-101-5/+1 * - Deprecate QT3, KDE3 and unmaintained ports depending on them. QT 3.3.8beat2012-12-30