This uses accept 'env' as an argument for ports that do use their own or a different do-configure target. Modify xmkmf so it accept IMAKECPPFLAGS as default flags for imake and pass it to the called imake. Modify xorg-cf-files (the FreeBSD.cf configuration file) to allow CppCmd to be overwritten. Pass CppCmd CcCmd and CplusplusCmd via command line to each call of imake via IMAKECPPFLAGS Pass IMAKE_DEFINE with the above arguments to MAKE_ARGS so that imake spawned from Makefile generated by a previous imake also inherit the defined CppCmd CcCmd and CplusplusCmd. Make imake use devel/tradcpp all the time, so that when buidling with clang we do not depend on gcc's cpp. Make imake respect CC and CXX Make imake respect USE_GCC (if set imake will use gcc's cpp). While here: - Remove a couple of indefinite articles from comments - Trim headers - Fix a couple of ports to build with clang or use: USE_GCC=any - Fix a now useless redefinition of the extraction chain - Fix a typo in japanese/Wnn7-lib bundled imake template definitions - Fix some XMKMF execution with no env specified - Use options helper in x11/xautolock to simplify the port
63 lines
1.9 KiB
Makefile
63 lines
1.9 KiB
Makefile
# Created by: piero
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xanim
|
|
PORTVERSION= 2.92.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= multimedia graphics
|
|
MASTER_SITES= ftp://ftp.informatik.uni-hamburg.de/pub/soft/graphics/xanim/:main \
|
|
${MASTER_SITE_LOCAL} \
|
|
ftp://ftp.informatik.uni-hamburg.de/pub/soft/graphics/xanim/dlls/
|
|
MASTER_SITE_SUBDIR= dinoex
|
|
DISTNAME= xanim2920
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:main ${EXTRA_FILES}
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
COMMENT= Play most popular animation formats and show pictures
|
|
|
|
NO_CDROM= redistributed without fee
|
|
|
|
# clang's cpp destroys whitespace, particularly hard tabs in makefiles,
|
|
# which is fatal for imake.
|
|
USES= imake
|
|
USE_GCC= any
|
|
USE_XORG= xext xt sm ice xext x11
|
|
MAN1= xanim.1
|
|
MAKE_ARGS+= -j 2 # safe and helps even the single-CPU machines
|
|
DLLDIR= ${PREFIX}/lib/X11/xanim
|
|
PLIST_FILES+= bin/xanim
|
|
NO_CDROM= without fee
|
|
|
|
post-extract:
|
|
${CP} ${WRKSRC}/docs/xanim.man ${WRKSRC}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if (${ARCH} == "i386")
|
|
EXTRA_FILES= vid_cvid_2.1_freebsdELFx86.tgz \
|
|
vid_cyuv_1.0_freebsdELFx86.tgz \
|
|
vid_h261_1.0_freebsdELFx86.tgz \
|
|
vid_h263_1.0_freebsdELFx86.tgz \
|
|
vid_iv32_2.1_freebsdELFx86.tgz \
|
|
vid_iv41_1.1_freebsdELFx86.tgz \
|
|
vid_iv50_1.0_freebsdELFx86.tgz
|
|
PLIST_FILES+= lib/X11/xanim/cvid.readme lib/X11/xanim/cyuv.readme \
|
|
lib/X11/xanim/h261.readme lib/X11/xanim/h263.readme \
|
|
lib/X11/xanim/iv32.readme lib/X11/xanim/iv41.readme \
|
|
lib/X11/xanim/iv50.readme \
|
|
lib/X11/xanim/vid_cvid_2.1_freebsdELFx86.xa \
|
|
lib/X11/xanim/vid_cyuv_1.0_freebsdELFx86.xa \
|
|
lib/X11/xanim/vid_h261_1.0_freebsdELFx86.xa \
|
|
lib/X11/xanim/vid_h263_1.0_freebsdELFx86.xa \
|
|
lib/X11/xanim/vid_iv32_2.1_freebsdELFx86.xa \
|
|
lib/X11/xanim/vid_iv41_1.1_freebsdELFx86.xa \
|
|
lib/X11/xanim/vid_iv50_1.0_freebsdELFx86.xa
|
|
PLIST_DIRS+= lib/X11/xanim
|
|
|
|
post-install:
|
|
@${MKDIR} ${DLLDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/*.readme ${DLLDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/*.xa ${DLLDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|