1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/graphics/proj/Makefile
2021-04-06 16:31:07 +02:00

58 lines
1.3 KiB
Makefile

# Created by: jedgar@FreeBSD.org
PORTNAME= proj
PORTVERSION= 7.2.1
PORTEPOCH= 1
CATEGORIES= graphics geography
MASTER_SITES= https://download.osgeo.org/proj/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${DATUM_GRID_FILES}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= lbartoletti@FreeBSD.org
COMMENT= Cartographic Projections library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libtiff.so:graphics/tiff \
libcurl.so:ftp/curl
USES= compiler:c++11-lang gmake libtool pathfix pkgconfig sqlite
USE_LDCONFIG= yes
OPTIONS_DEFINE= DATA
OPTIONS_SUB= yes
DATA_DISTFILES= proj-data-1.0${EXTRACT_SUFX}
GNU_CONFIGURE= yes
DATUM_GRID_FILES= proj-datumgrid-1.8.zip \
proj-datumgrid-europe-1.3.zip \
proj-datumgrid-north-america-1.2.zip \
proj-datumgrid-oceania-1.0.zip \
proj-datumgrid-world-1.0.zip
SUB_FILES= pkg-message
SUB_LIST= PREFIX=${PREFIX}
INSTALL_TARGET= install-strip
TEST_TARGET= check
post-extract:
${MKDIR} ${WRKSRC}/datum
.for f in ${DATUM_GRID_FILES}
@${TAR} -xf ${DISTDIR}/${f} -C ${WRKSRC}/datum
.endfor
post-extract-DATA-on:
${MKDIR} ${WRKSRC}/proj_data
@${TAR} -xf ${DISTDIR}/${DATA_DISTFILES} -C ${WRKSRC}/proj_data
post-install:
cd ${WRKSRC}/datum && ${INSTALL_DATA} * ${STAGEDIR}${DATADIR}
post-install-DATA-on:
cd ${WRKSRC}/proj_data && ${INSTALL_DATA} * ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>