freebsd-ports/archivers/lha-ac/Makefile
Emanuel Haupt 5005b67362 According to the Porter's Handbook (5.12.2.3.) default options must be added to
OPTIONS_DEFINE. This policy has been implemented only recently that's why we
have many ports violating this policy.

This patch adds the default options specified in the Porter's Handbook to
OPTIONS_DEFINE where they are being used. Ports maintained by
gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded.

Approved by:    portmgr (bapt)
2014-02-10 13:54:26 +00:00

39 lines
951 B
Makefile

# $FreeBSD$
PORTNAME= lha
PORTVERSION= 1.14i
PORTREVISION= 10
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP} \
http://osdn.dl.sourceforge.jp/%SUBDIR%/
MASTER_SITE_SUBDIR= lha/22231
PKGNAMESUFFIX= -ac${PKGNAMESUFFIX2}
DISTNAME= ${PORTNAME}-${PORTVERSION}-ac20050924p1
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Archive files using LZSS and Huffman compression (.lzh files)
RESTRICTED= No redistribution allowed
GNU_CONFIGURE= yes
PLIST_FILES= bin/lha-ac
MANLANG= ja
MAN1_JA= lha-ac.1
PLIST_FILES+= ${__MANPAGES}
OPTIONS_DEFINE= NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= --disable-multibyte-filename
.else
CONFIGURE_ARGS+= --enable-multibyte-filename=auto
.endif
do-install:
-${MKDIR} ${STAGEDIR}${PREFIX}/man/ja/man1
${INSTALL_PROGRAM} ${WRKSRC}/src/lha ${STAGEDIR}${PREFIX}/bin/lha-ac
${INSTALL_MAN} ${WRKSRC}/man/lha.n ${STAGEDIR}${PREFIX}/man/ja/man1/lha-ac.1
.include <bsd.port.mk>