openbsd-ports/astro/sunclock/Makefile

82 lines
2.5 KiB
Makefile
Raw Normal View History

2013-03-10 18:28:04 -04:00
# $OpenBSD: Makefile,v 1.23 2013/03/10 22:28:05 espie Exp $
2007-09-15 06:37:21 -04:00
COMMENT-main= display the phase of the Sun on a map of the Earth
COMMENT-maps= additional maps of the Earth for sunclock
VERSION= 3.56
DISTNAME= sunclock-${VERSION}
2010-07-11 12:01:51 -04:00
PKGNAME-main= ${DISTNAME}
PKGNAME-maps= sunclock-maps-${VERSION}
CATEGORIES= astro
HOMEPAGE= http://www.arvernes.com/wiki/index.php/Sunclock
MASTER_SITES= ftp://ftp.ac-grenoble.fr/ge/geosciences/sunclock/
MASTER_SITES0= ftp://ftp.ac-grenoble.fr/ge/geosciences/sunclock/data_packages/
SUPDISTFILES= big_images_270804.tar.bz2:0 \
medium_images_270804.tar.bz2:0 \
e43_color1_sh_16k.jpg:0 \
huge.jpg:0
EXTRACT_SUFX= .tar.bz2
FAKE= lib
CONFIGURE_STYLE= imake
2013-03-10 18:28:04 -04:00
NO_TEST= Yes
PSEUDO_FLAVORS= no_maps
FLAVOR?= no_maps
2011-10-17 06:38:41 -04:00
MULTI_PACKAGES= -main -maps
2011-10-17 06:38:41 -04:00
.include <bsd.port.arch.mk>
2007-09-15 06:37:21 -04:00
PERMIT_PACKAGE_CDROM-maps= no license for additional maps
PERMIT_PACKAGE_FTP-maps= no license for additional maps
2011-03-07 13:54:50 -05:00
RUN_DEPENDS-maps= astro/sunclock
2006-11-24 17:21:48 -05:00
PKG_ARCH-maps= *
# GPL
PERMIT_PACKAGE_CDROM= Yes
REVISION-main = 3
2010-07-11 12:01:51 -04:00
REVISION-maps = 0
WANTLIB-main= X11 Xext Xpm Xau Xdmcp c m z jpeg png
DIST_SUBDIR= sunclock
2006-11-24 17:21:48 -05:00
LIB_DEPENDS-main= graphics/jpeg \
graphics/png
2011-10-17 06:38:41 -04:00
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
2011-10-17 06:38:41 -04:00
.if ${BUILD_PACKAGES:M-maps} # with maps
DISTFILES+= ${SUPDISTFILES}
post-extract:
${BZIP2} -dkc ${FULLDISTDIR}/medium_images_270804.tar.bz2 | tar -xf - \
-C ${WRKSRC}/vmf -s '#images/medium#.#'
${BZIP2} -dkc ${FULLDISTDIR}/big_images_270804.tar.bz2 | tar -xf - \
-C ${WRKSRC}/vmf -s '#images/big#.#'
cp ${FULLDISTDIR}/e43_color1_sh_16k.jpg ${WRKSRC}/vmf/
cp ${FULLDISTDIR}/huge.jpg ${WRKSRC}/vmf/
.endif
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/sunclock ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/sunclock.man ${PREFIX}/man/man1/sunclock.1
${INSTALL_DATA_DIR} ${PREFIX}/share/sunclock
${INSTALL_DATA} ${WRKSRC}/Sunclockrc ${PREFIX}/share/sunclock/
${INSTALL_DATA_DIR} ${PREFIX}/share/sunclock/earthmaps
${INSTALL_DATA_DIR} ${PREFIX}/share/sunclock/earthmaps/vmf
${INSTALL_DATA_DIR} ${PREFIX}/share/sunclock/i18n
${INSTALL_DATA_DIR} ${PREFIX}/share/sunclock/wm_icons/
${INSTALL_DATA} ${WRKSRC}/wm_icons/* ${PREFIX}/share/sunclock/wm_icons/
2011-10-17 06:38:41 -04:00
.if ${BUILD_PACKAGES:M-maps}
${INSTALL_DATA} ${WRKSRC}/vmf/*jpg ${PREFIX}/share/sunclock/earthmaps/
${INSTALL_DATA} ${WRKSRC}/vmf/*png ${PREFIX}/share/sunclock/earthmaps/
.endif
${INSTALL_DATA} ${WRKSRC}/vmf/*vmf ${PREFIX}/share/sunclock/earthmaps/vmf/
${INSTALL_DATA} ${WRKSRC}/i18n/Sunclock.* ${PREFIX}/share/sunclock/i18n/
.include <bsd.port.mk>