are no more self hosting so we are stuck with 0.25 version while pkgconf provide the same set of features as 0.27 and a compatible frontend. A symlink to pkg-config has been added for convenience and compatibility This also introduces a new macro to use pkgconf in your ports: USE_PKGCONFIG it can take the following arguments: - yes (meaning build only dep) - build (meaning build only dep) - run (meaning run only dep) - both (meaning run and build dep) From now USE_GNOME= pkgconfig is deprecated in favour of USE_PKGCONFIG The old gnome macro has been modified to use pkgconf but still the sameway: run and build dep to avoid large breakage. While here fix some ports relying on pkg-config but not specifying it, fix some ports broken because testing wrong .pc files, and fix ports using pkg-config --version to determine pkg-config version instead of pkg-config --modversion pkg-config like recommanded by pkg-config With Hat: portmgr Exp-runs by: bapt (pointhat-west), beat (pointyhat)
63 lines
1.3 KiB
Makefile
63 lines
1.3 KiB
Makefile
# New ports collection makefile for: mc-light
|
|
# Date created: 31.08.2004
|
|
# Whom: Roman Y. Bogdanov <sam@brj.pp.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mc-light
|
|
PORTVERSION= 4.1.40.p9
|
|
PORTREVISION= 8
|
|
CATEGORIES= misc shells
|
|
MASTER_SITES= http://mc.linuxinside.com/Releases/
|
|
DISTNAME= mc-${PORTVERSION:S/.p9/-pre9/}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A lightweight Midnight Commander clone
|
|
|
|
RUN_DEPENDS= gawk:${PORTSDIR}/lang/gawk
|
|
|
|
CONFLICTS= mc-4.7*
|
|
|
|
OPTIONS_DEFINE= NLS SUBSHELL MC_IN_MC
|
|
SUBSHELL_DESC= Build with subshell support (only for bash!)
|
|
MC_IN_MC_DESC= Allow run mc inside mc (useful for mcedit)
|
|
|
|
USE_GMAKE= yes
|
|
USE_ICONV= yes
|
|
USE_PKGCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+=--with-included-slang \
|
|
--with-gettext \
|
|
--with-vfs \
|
|
--with-netrc \
|
|
--without-gpm-mouse \
|
|
--with-edit
|
|
|
|
MAN1= mc.1 mcedit.1
|
|
MAN8= mcserv.8
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MSUBSHELL}
|
|
CONFIGURE_ARGS+=--without-subshell
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USE_GETTEXT= yes
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMC_IN_MC}
|
|
CPPFLAGS+= -DMC_IN_MC_ALLOWED
|
|
.endif
|
|
|
|
post-install:
|
|
.for i in a arfs audio cpio deb esp ftplist hp48 iso lha lslR mailfs patchfs rar rpm trpm uarj uha zip zoo
|
|
${CHMOD} 755 ${PREFIX}/share/mc/extfs/${i}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|