1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/print/acroread9/Makefile
Baptiste Daroussin 039d6ac337 Support stage
2014-05-08 23:41:30 +00:00

95 lines
3.0 KiB
Makefile

# Created by: hrs
# $FreeBSD$
PORTNAME= acroread9
PORTVERSION?= 9.5.5
PORTREVISION= 1
CATEGORIES?= print linux
MASTER_SITES?= http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/${PORTVERSION}/${ADOBE_LANG:tl}/ \
ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/${PORTVERSION}/${ADOBE_LANG:tl}/
DISTNAME= AdbeRdr${PORTVERSION:S,.0$,,}-1_i486linux_${ADOBE_LANG:tl}
DIST_SUBDIR= acroread
MAINTAINER= hrs@FreeBSD.org
COMMENT= Adobe Reader for view, print, and search PDF documents (${ADOBE_LANG})
LICENSE= Adobe_WWEULA_20080204_1313
LICENSE_NAME= Adobe EULA (Reader_Player_AIR_WWEULA-en_US-20080204_1313)
LICENSE_TEXT= ${INSTALLDIR}/Adobe/Reader9/Reader/Legal/en_US/License.txt
LICENSE_PERMS= auto-accept
RUN_DEPENDS= acroreadwrapper>=0.0.20110529:${PORTSDIR}/print/acroreadwrapper
USES= tar:bzip2
RESTRICTED= Must fill out redistribution form at http://www.adobe.com/products/acrobat/distribute.html
ONLY_FOR_ARCHS= amd64 i386
USE_LINUX= yes
USE_LINUX_APPS= cups-libs gdkpixbuf gtk2 libgcrypt libgpg-error libxml2 pango
USE_LDCONFIG= yes
#USE_GNOME= desktopfileutils
NO_BUILD= yes
PLIST_SUB= ACRODIR=${ACRODIR} \
ACROBASE=${ACROBASE} \
ADOBEBASE=${ADOBEBASE} \
PLUGINDIR=${PLUGINDIR} \
ADOBE_LANG=${ADOBE_LANG:tu} \
LOCALE_NAME=${LOCALE_NAME} \
MANINSTALLDIR=${MANINSTALLDIR}
SUB_FILES= ln mv rm pkg-message pkg-deinstall
SUB_LIST= ADOBE_LANG=${ADOBE_LANG:tu} \
ACROBASE=${ACROBASE}
PKGMESSAGE= ${WRKDIR}/pkg-message
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
WRKSRC= ${WRKDIR}/AdobeReader
LANGCODE= chs:zh_CN cht:zh_TW dan:da_DK deu:de_DE enu:en_US \
esp:es_ES fra:fr_FR ita:it_IT jpn:ja_JP kor:ko_KR \
nld:nl_NL nor:nb_NO ptb:pt_BR suo:fi_FI sve:sv_SE
ADOBE_LANG?= ENU
.for L in ${ADOBE_LANG:tl}
LOCALE_NAME= ${LANGCODE:M${L}\:*:C/.*\://}
MANLANG= ${LOCALE_NAME:C/_.*//:C/en//}
LANG_${L:tu}= ""
LANG_NON${L:tu}= "@comment "
.endfor
.for L in ${LANGCODE:C/\:.*//:tu}
LANG_${L}?= "@comment "
LANG_NON${L}?= ""
PLIST_SUB+= LANG_${L}=${LANG_${L}}
PLIST_SUB+= LANG_NON${L}=${LANG_NON${L}}
.endfor
ADOBEBASE= Adobe
ACROBASE= ${ADOBEBASE}/Reader9
ACRODIR= ${ACROBASE}/${ADOBE_LANG:tu}
PLUGINDIR= lib/browser_linux_plugins
INSTALLDIR= ${PREFIX}/${ACRODIR}
INSTALLEXEC= ${SETENV} UNAME_s=Linux \
InstallDir=${INSTALLDIR} \
UNAME_r="Linux Compatibility on FreeBSD" \
${SH} ./INSTALL --install_path=${STAGEDIR}${INSTALLDIR} > /dev/null
.if !empty(MANLANG)
MANINSTALLDIR= man/${MANLANG}
.else
MANINSTALLDIR= man
.endif
pre-install:
@${MKDIR} ${WRKDIR}/bin
@${INSTALL_SCRIPT} \
${WRKDIR}/ln ${WRKDIR}/rm ${WRKDIR}/mv \
${WRKDIR}/bin
do-install:
@${MKDIR} ${STAGEDIR}${INSTALLDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/desktop-directories
@cd ${WRKSRC} && ${SETENV} PATH=${WRKDIR}/bin:${PATH} ${INSTALLEXEC} > /dev/null
${MKDIR} ${STAGEDIR}${MANPREFIX}/${MANINSTALLDIR}/man1
${LN} -s -f \
${INSTALLDIR}/Adobe/Reader9/Resource/Shell/acroread.1.gz \
${STAGEDIR}${MANPREFIX}/${MANINSTALLDIR}/man1/
${SED} -i "" -e "s,${STAGEDIR},," ${STAGEDIR}${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/.config
.include <bsd.port.mk>