mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
5384f97a05
- fix LIB_DEPENDS for gettext - honor LOCALBASE for uzip - urar now works
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# New ports collection makefile for: mc
|
|
# Date created: 15 Jul 1995
|
|
# Whom: torstenb@FreeBSD.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mc
|
|
PORTVERSION= 4.5.55
|
|
CATEGORIES= misc
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
|
MASTER_SITE_SUBDIR= stable/sources/mc
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
|
|
BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell
|
|
.if !defined(WITHOUT_SLANG)
|
|
LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang
|
|
.endif
|
|
|
|
USE_GMAKE= yes
|
|
USE_GNOMENG= yes
|
|
USE_GNOME= glib12
|
|
USE_REINPLACE= yes
|
|
GNU_CONFIGURE= yes
|
|
.if !defined(WITHOUT_SLANG)
|
|
CONFIGURE_ARGS= --with-slang --without-gnome
|
|
.else
|
|
CONFIGURE_ARGS= --with-ncurses --without-gnome
|
|
.endif
|
|
CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include \
|
|
LDFLAGS="-L${LOCALBASE}/lib -lintl"
|
|
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
|
|
|
|
MAN1= mc.1 mcedit.1
|
|
|
|
post-patch:
|
|
@find ${WRKSRC} -name "Makefile.in*" | xargs ${REINPLACE_CMD} \
|
|
-e 's|\$$(libdir)/mc|\$$(datadir)/mc|g' \
|
|
-e 's|\$$(datadir)/locale|\$$(prefix)/share/locale|g'
|
|
@${REINPLACE_CMD} -e 's|DRAR=/usr/bin|DRAR=${LOCALBASE}/bin|' \
|
|
${WRKSRC}/vfs/extfs/urar.in
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/\(.*\)zip|${LOCALBASE}/bin/\1zip|' \
|
|
${WRKSRC}/vfs/extfs/uzip
|
|
|
|
post-install:
|
|
@${LN} -sf mc ${PREFIX}/bin/midc
|
|
|
|
.include <bsd.port.mk>
|