1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Add USES=libtool

- Simplify CONFIGURE_ARGS
- Use option helpers
This commit is contained in:
Tijl Coosemans 2014-07-05 20:36:48 +00:00
parent 47c1707021
commit b91c89f698
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360816
2 changed files with 13 additions and 20 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= pam_krb5
DISTVERSION= 2.4.9
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= https://fedorahosted.org/released/${PORTNAME}/ \
http://mirrors.rit.edu/zi/
@ -16,26 +17,19 @@ LICENSE_COMB= dual
CONFLICTS= pam_krb5-4.*
USES= iconv
USES= iconv libtool
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=${ICONV_CONFIGURE_ARG} --without-afs \
--with-libintl-prefix=${LOCALBASE} --with-krb4=no \
--without-keyutils
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --without-afs --without-keyutils --without-krb4
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
LDFLAGS+= -lintl
USES+= gettext
.else
PLIST_SUB+= NLS="@comment "
CONFIGURE_ARGS+=--disable-nls
.endif
NLS_CONFIGURE_ENABLE= nls
NLS_LIBS= -lintl
NLS_USES= gettext
post-patch:
@${REINPLACE_CMD} -e 's|libdir)/security|libdir)|g' ${WRKSRC}/src/Makefile.in

View File

@ -1,7 +1,9 @@
lib/pam_krb5/pam_krb5_cchelper
lib/pam_krb5.so
lib/pam_krb5.la
@dirrm lib/pam_krb5
lib/pam_krb5.so
man/man5/pam_krb5.5.gz
man/man8/pam_krb5.8.gz
man/man8/pam_krb5_cchelper.8.gz
%%NLS%%share/locale/as/LC_MESSAGES/pam_krb5.mo
%%NLS%%share/locale/bn_IN/LC_MESSAGES/pam_krb5.mo
%%NLS%%share/locale/ca/LC_MESSAGES/pam_krb5.mo
@ -37,9 +39,6 @@ lib/pam_krb5.la
%%NLS%%share/locale/uk/LC_MESSAGES/pam_krb5.mo
%%NLS%%share/locale/zh_CN/LC_MESSAGES/pam_krb5.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/pam_krb5.mo
man/man5/pam_krb5.5.gz
man/man8/pam_krb5.8.gz
man/man8/pam_krb5_cchelper.8.gz
%%NLS%%@dirrmtry share/locale/as/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/bn_IN/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/mr/LC_MESSAGES