1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/misc/pdmenu/Makefile
Mathieu Arnold 8d6597e0bb Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:16:16 +00:00

45 lines
1.1 KiB
Makefile

# Created by: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
# $FreeBSD$
PORTNAME= pdmenu
PORTVERSION= 1.3.4
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= DEBIAN
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple console menu program
LICENSE= GPLv2
LIB_DEPENDS= libslang.so:devel/libslang2
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= gettext gmake ncurses shebangfix
SHEBANG_FILES= examples/showdir.pl
GNU_CONFIGURE= yes
CONFIGURE_ENV= SLANG_H_LOC="${LOCALBASE}/include/slang.h" \
SLANG_LIB_LOC="${LOCALBASE}/lib"
MAKE_ENV= INSTALL_PREFIX="${STAGEDIR}"
CFLAGS+= -I${LOCALBASE}/include
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -lncurses -lintl
post-patch:
@${REINPLACE_CMD} -e \
'/^LANGS/s|=.*$$|= da es fr ru| ; \
/^LOCALEDIR/s|/usr/share|$$(DATADIR)| ; \
s|\($$(CC)\) \(-MM\)|\1 $$(CFLAGS) \2| ; \
/INSTALL/s| -m 0644|| ; \
/INSTALL/s|\(pdmenurc\)$$|\1.sample| ; \
s|install -m 644|$$(INSTALL)|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e \
's|$${INSTALL}|@INSTALL_PROGRAM@|' \
${WRKSRC}/autoconf/makeinfo.in
.include <bsd.port.mk>