1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00

- Convert to USES=tk

- Convert to USES=gmake
- STAGE-clean

MFH:		2014Q1
This commit is contained in:
Pietro Cerutti 2014-01-09 08:59:44 +00:00
parent 7a41167f51
commit 1c3ce76143
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339211
2 changed files with 10 additions and 8 deletions

View File

@ -12,7 +12,7 @@ DISTNAME= shape${PORTVERSION:S/.//g}
MAINTAINER= nivit@FreeBSD.org
COMMENT= A Tk library to access to X Shaped Window Extension
USE_TK= yes
USES= gmake tk:85+
USE_XORG= x11 xext
@ -24,17 +24,16 @@ OPTIONS_DEFINE= MANPAGES
OPTIONS_DEFAULT= MANPAGES
MANPAGES_DESC= Install manual pages
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMANPAGES}
MAN3= CombShape.3 QuryShape.3
MANN= shape.n
PLIST_SUB+= MAN=""
.else
PLIST_SUB+= MAN="@comment "
.endif
WRKSRC= ${WRKDIR}/${PORTNAME:C/^tk//1}${PORTVERSION}
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-tclconf=${TCL_LIBDIR} \
--with-tkconf=${TK_LIBDIR}
@ -60,8 +59,8 @@ FIND_IMAGES= demos/images -type f \
-and \( -name "*.gif" -or -name "*.xbm" \
-or -name "*.cur" \)
TARGET_DIR= ${PREFIX}/lib/${PORTNAME}
MANPAGES= ${MAN3} ${MANN}
TARGET_DIR= ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
MANPAGES= CombShape.3 QuryShape.3 shape.n
do-install:
# script, library
@ -87,7 +86,7 @@ do-install:
cd ${WRKSRC}; \
for m in ${MANPAGES} ; do \
s=$${m##*.}; \
${INSTALL_MAN} doc/$${m} ${MANPREFIX}/man/man$${s}/$${m}; \
${INSTALL_MAN} doc/$${m} ${STAGEDIR}${PREFIX}/man/man$${s}/$${m}; \
done;
.endif

View File

@ -10,6 +10,9 @@ lib/%%PORTNAME%%/demos/images/none.cur
lib/%%PORTNAME%%/demos/images/ptr-green.gif
lib/%%PORTNAME%%/demos/images/ptr-mask.xbm
lib/%%PORTNAME%%/demos/images/ptr-red.gif
%%MAN%%man/man3/CombShape.3.gz
%%MAN%%man/man3/QuryShape.3.gz
%%MAN%%man/mann/shape.n.gz
@dirrm lib/%%PORTNAME%%/demos/images
@dirrm lib/%%PORTNAME%%/demos
@dirrm lib/%%PORTNAME%%