freebsd-ports/x11-clocks/asclock-xlib/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

37 lines
889 B
Makefile

# $FreeBSD$
PORTNAME= asclock-xlib
PORTVERSION= 2.0.11
PORTREVISION= 4
CATEGORIES= x11-clocks afterstep windowmaker
MASTER_SITES= LOCAL/kuriyama
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= New flavor of asclock
MAKE_JOBS_UNSAFE= yes
WRKSRC= ${WRKDIR}/asclock-xlib
USE_XORG= xpm x11
USES= imake
.include <bsd.port.pre.mk>
post-patch:
@(cd ${WRKSRC}; \
${MV} config.c config.c.tmp; \
${SED} -e s@/usr/local/@${PREFIX}/@ -e s@/usr/share/asclock@${PREFIX}/share/asclock@ < config.c.tmp > config.c )
pre-configure:
@(cd ${WRKSRC}; \
${RM} -rf default_theme; \
${LN} -s themes/Orb default_theme)
post-install:
.for i in Freeamp Newstone Orb Stone beats classic penguin shaped
(cd ${WRKSRC}/themes/${i}; \
${MKDIR} ${STAGEDIR}${PREFIX}/share/asclock/${i}; \
${INSTALL_DATA} *.xpm config ${STAGEDIR}${PREFIX}/share/asclock/${i}/ )
.endfor
.include <bsd.port.post.mk>