diff options
author | tijl <tijl@FreeBSD.org> | 2013-09-02 13:26:34 +0000 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2013-09-02 13:26:34 +0000 |
commit | ca2a2263a744b7c6f6f551ba68906f43afe04522 (patch) | |
tree | 724d013a376d218986fefc586ed681b8c219eeb7 | |
parent | d44d174b995274dd9e8ddc49b959e3790c47ce71 (diff) | |
download | FreeBSD-ports-ca2a2263a744b7c6f6f551ba68906f43afe04522.zip FreeBSD-ports-ca2a2263a744b7c6f6f551ba68906f43afe04522.tar.gz |
Two imake related changes:
1) Move -a from XMKMF command variable to a new XMKMF_ARGS variable.
For ports that don't need -a introduce USES=imake:notall.
This way ports no longer have to redefine XMKMF.
2) xmkmf -a runs imake with the flags in IMAKECPPFLAGS as extra arguments
to set CPP, CC and CXX. This creates the top Makefile, and then xmkmf
runs make Makefiles. This Makefiles target runs imake for each
subdirectory but these imake invocations did not have the flags from
IMAKECPPFLAGS so the resulting makefiles used the wrong C preprocessor
when clang is used (/usr/bin/cpp instead of /usr/local/bin/tradcpp).
Instead of letting xmkmf pass IMAKECPPFLAGS from the environment to
imake let imake handle IMAKECPPFLAGS itself just like it handles
IMAKEINCLUDE.
This exposed configure errors in x11-clocks/mouseclock and x11-wm/fvwm.
Approved by: portmgr (bapt)
-rw-r--r-- | Mk/Uses/imake.mk | 10 | ||||
-rw-r--r-- | Mk/bsd.commands.mk | 2 | ||||
-rw-r--r-- | devel/imake/Makefile | 1 | ||||
-rw-r--r-- | devel/imake/files/patch-imake.c | 21 | ||||
-rw-r--r-- | devel/imake/files/patch-xmkmf.cpp | 24 | ||||
-rw-r--r-- | editors/asedit/Makefile | 3 | ||||
-rw-r--r-- | emulators/spim/Makefile | 2 | ||||
-rw-r--r-- | games/cosmo/Makefile | 3 | ||||
-rw-r--r-- | graphics/xmagv/Makefile | 1 | ||||
-rw-r--r-- | graphics/xpx/Makefile | 3 | ||||
-rw-r--r-- | japanese/canna-lib/Makefile | 3 | ||||
-rw-r--r-- | japanese/canna-server/Makefile | 4 | ||||
-rw-r--r-- | misc/magicpoint/Makefile | 2 | ||||
-rw-r--r-- | print/xdvi/Makefile | 3 | ||||
-rw-r--r-- | security/xspy/Makefile | 3 | ||||
-rw-r--r-- | x11-clocks/mouseclock/Makefile | 11 | ||||
-rw-r--r-- | x11-clocks/mouseclock/files/patch-Imakefile | 23 | ||||
-rw-r--r-- | x11-wm/fvwm/Makefile | 5 | ||||
-rw-r--r-- | x11/xgrab/Makefile | 4 | ||||
-rw-r--r-- | x11/xxkb/Makefile | 2 |
20 files changed, 66 insertions, 64 deletions
diff --git a/Mk/Uses/imake.mk b/Mk/Uses/imake.mk index ca4aca6..b71fc41 100644 --- a/Mk/Uses/imake.mk +++ b/Mk/Uses/imake.mk @@ -7,6 +7,7 @@ # Feature: imake # Usage: USES=imake # Valid ARGS: env: do not define any target +# notall: do not pass -a to xmkmf # .if !defined(_INCLUDE_USES_IMAKE_MK) @@ -15,6 +16,8 @@ _INCLUDE_USES_IMAKE_MK= yes .if defined(imake_ARGS) .if ${imake_ARGS} == env IMAKE_ENV_ONLY= yes +.elif ${imake_ARGS} == notall +IMAKE_NOTALL= yes .else IGNORE= USES=imake ${imake_ARGS} is not a valid argument .endif @@ -36,12 +39,15 @@ BUILD_DEPENDS+= tradcpp:${PORTSDIR}/devel/tradcpp .endif MAKE_ENV+= IMAKECPP=${IMAKECPP} IMAKECPPFLAGS="${IMAKECPPFLAGS}" CONFIGURE_ENV+= IMAKECPP=${IMAKECPP} IMAKECPPFLAGS="${IMAKECPPFLAGS}" -MAKE_ARGS+= IMAKE_DEFINES="${IMAKECPPFLAGS}" + +.if !defined(IMAKE_NOTALL) +XMKMF_ARGS+= -a +.endif .if !defined(IMAKE_ENV_ONLY) .if !target(do-configure) do-configure: - @(cd ${CONFIGURE_WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF}) + @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${MAKE_ENV} ${XMKMF} ${XMKMF_ARGS}) .endif .if !defined(NO_INSTALL_MANPAGES) diff --git a/Mk/bsd.commands.mk b/Mk/bsd.commands.mk index 5eb0230..3da333d 100644 --- a/Mk/bsd.commands.mk +++ b/Mk/bsd.commands.mk @@ -97,7 +97,7 @@ UNMAKESELF_CMD?= ${LOCALBASE}/bin/unmakeself UNZIP_CMD?= ${LOCALBASE}/bin/unzip WHICH?= /usr/bin/which XARGS?= /usr/bin/xargs -XMKMF?= ${LOCALBASE}/bin/xmkmf -a +XMKMF?= ${LOCALBASE}/bin/xmkmf YACC?= /usr/bin/yacc XZ?= -Mmax diff --git a/devel/imake/Makefile b/devel/imake/Makefile index 6e2b311..be0a13e 100644 --- a/devel/imake/Makefile +++ b/devel/imake/Makefile @@ -3,6 +3,7 @@ PORTNAME= imake PORTVERSION= 1.0.6 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= devel diff --git a/devel/imake/files/patch-imake.c b/devel/imake/files/patch-imake.c index ff56097..6fc194f 100644 --- a/devel/imake/files/patch-imake.c +++ b/devel/imake/files/patch-imake.c @@ -1,6 +1,21 @@ ---- imake.c.orig Tue Jan 30 14:57:37 2007 -+++ imake.c Tue Jan 30 14:55:59 2007 -@@ -1153,29 +1153,17 @@ +--- imake.c.orig 2013-07-23 06:53:04.000000000 +0200 ++++ imake.c 2013-08-31 14:57:48.000000000 +0200 +@@ -531,6 +531,14 @@ + AddCppArg(p); + } + } ++ if ((p = getenv("IMAKECPPFLAGS"))) { ++ AddCppArg(p); ++ for (; *p; p++) ++ if (*p == ' ') { ++ *p++ = '\0'; ++ AddCppArg(p); ++ } ++ } + if ((p = getenv("IMAKECPP"))) + cpp = p; + if ((p = getenv("IMAKEMAKE"))) +@@ -1142,29 +1150,17 @@ int mib[2]; size_t len; int osrel = 0; diff --git a/devel/imake/files/patch-xmkmf.cpp b/devel/imake/files/patch-xmkmf.cpp deleted file mode 100644 index 75e4964..0000000 --- a/devel/imake/files/patch-xmkmf.cpp +++ /dev/null @@ -1,24 +0,0 @@ ---- xmkmf.cpp.orig 2012-03-08 06:47:32.000000000 +0100 -+++ xmkmf.cpp 2013-06-28 11:55:04.174394058 +0200 -@@ -8,7 +8,7 @@ - topdir= - curdir=. - do_all= --imake_defines= -+imake_defines="${IMAKECPPFLAGS}" - - while [ $# -gt 0 ] - do -@@ -64,3 +64,12 @@ - imake $imake_defines $args - ;; - esac -+ -+if [ -f "Makefile" ];then -+ if [ -n "$CC" ];then -+ sed -i "" -e "s| CC = cc| CC = $CC|" Makefile -+ fi -+ if [ -n "$CXX" ];then -+ sed -i "" -e "s| CXX = c++| CXX = $CXX|" Makefile -+ fi -+fi diff --git a/editors/asedit/Makefile b/editors/asedit/Makefile index 85b69bf..921311b 100644 --- a/editors/asedit/Makefile +++ b/editors/asedit/Makefile @@ -12,9 +12,8 @@ EXTRACT_SUFX= .tar.Z MAINTAINER= ports@FreeBSD.org COMMENT= Text editor for X/Motif -USES= imake motif +USES= imake:notall motif USE_XORG= ice sm x11 xext xmu xp xt -XMKMF= xmkmf MAN1= asedit.1 diff --git a/emulators/spim/Makefile b/emulators/spim/Makefile index 2bbb8e4..ee10f4f 100644 --- a/emulators/spim/Makefile +++ b/emulators/spim/Makefile @@ -34,7 +34,7 @@ MAN1+= xspim.1 post-build: .if ${PORT_OPTIONS:MGUI} - @(cd ${WRKSRC}/xspim && ${SETENV} ${MAKE_ENV} ${XMKMF} && \ + @(cd ${WRKSRC}/xspim && ${SETENV} ${MAKE_ENV} ${XMKMF} ${XMKMF_ARGS} && \ ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}) .endif diff --git a/games/cosmo/Makefile b/games/cosmo/Makefile index 0802581..5ef0cfc 100644 --- a/games/cosmo/Makefile +++ b/games/cosmo/Makefile @@ -22,9 +22,8 @@ NO_CDROM= Possible copyright infringement WRKSRC= ${WRKDIR}/cosmo2 DIST_SUBDIR= cosmo -USES= imake +USES= imake:notall USE_XORG= x11 xext -XMKMF= xmkmf NO_INSTALL_MANPAGES= yes post-install: diff --git a/graphics/xmagv/Makefile b/graphics/xmagv/Makefile index 46247b2..a2539e0 100644 --- a/graphics/xmagv/Makefile +++ b/graphics/xmagv/Makefile @@ -16,7 +16,6 @@ USES= imake:env WRKSRC= ${WRKDIR}/${PORTNAME} GNU_CONFIGURE= yes USE_XORG= x11 xext -XMKMF= xmkmf MANLANG= . ja MAN1= xmagv.1 diff --git a/graphics/xpx/Makefile b/graphics/xpx/Makefile index 9a59ff8..499dd73 100644 --- a/graphics/xpx/Makefile +++ b/graphics/xpx/Makefile @@ -13,9 +13,8 @@ COMMENT= Simple pixel editing tool to generate data for KISS WRKSRC= ${WRKDIR}/${PORTNAME} -USES= imake +USES= imake:notall USE_XORG= x11 xext -XMKMF= xmkmf DOCSDIR= ${PREFIX}/share/doc/ja/${PORTNAME} PORTDOCS= xpx.doc xpxrc.eg diff --git a/japanese/canna-lib/Makefile b/japanese/canna-lib/Makefile index 7dcefd6..59a78f5 100644 --- a/japanese/canna-lib/Makefile +++ b/japanese/canna-lib/Makefile @@ -13,7 +13,7 @@ DISTNAME= Canna${PORTVERSION:S/.//g} MAINTAINER= hrs@FreeBSD.org COMMENT= A Kana-to-Kanji conversion system, library part -USES= imake +USES= imake:notall USE_BZIP2= yes USE_GCC= any USE_LDCONFIG= yes @@ -24,7 +24,6 @@ PLIST_SUB= METAFILE="${METAFILE}" \ ALL_TARGET= canna INSTALL_TARGET= instsgs -XMKMF= xmkmf METAFILE= ${DATADIR_REL}/canna-lib-dic.meta diff --git a/japanese/canna-server/Makefile b/japanese/canna-server/Makefile index 87c0fd4..6279a5b 100644 --- a/japanese/canna-server/Makefile +++ b/japanese/canna-server/Makefile @@ -19,7 +19,6 @@ USES= imake USE_GCC= any USE_RC_SUBR= canna USE_BZIP2= yes -ALL_TARGET= canna INSTALL_TARGET= instserver instclient PLIST_SUB= METAFILE="${METAFILE}" \ MTREE_CMD="${MTREE_CMD}" @@ -46,9 +45,6 @@ MLINKS= uilib.3 XKanjiControl.3 uilib.3 XLookupKanjiString.3 uilib.3 \ METAFILE= ${DATADIR_REL}/canna-server-dic.meta -post-configure: - @cd ${CONFIGURE_WRKSRC} && ${SETENV} ${MAKE_ENV} ${XMKMF} - post-install: @cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install.man ${MTREE_CMD} -cdink uname,gname,mode,nochange \ diff --git a/misc/magicpoint/Makefile b/misc/magicpoint/Makefile index 7c786cc..2f72854 100644 --- a/misc/magicpoint/Makefile +++ b/misc/magicpoint/Makefile @@ -83,7 +83,7 @@ post-patch: ${WRKSRC}/configure post-configure: - (cd ${CONFIGURE_WRKSRC} && ${SETENV} ${MAKE_ENV} ${XMKMF}) + (cd ${CONFIGURE_WRKSRC} && ${SETENV} ${MAKE_ENV} ${XMKMF} ${XMKMF_ARGS}) cd ${WRKSRC}/contrib/xmindpath && \ ${SH} ${CONFIGURE_SCRIPT} --prefix=${PREFIX} diff --git a/print/xdvi/Makefile b/print/xdvi/Makefile index 765f968..31bce59 100644 --- a/print/xdvi/Makefile +++ b/print/xdvi/Makefile @@ -16,12 +16,11 @@ COMMENT= DVI previewer for the X Window System CONFLICTS= teTeX-* -USES= gmake imake +USES= gmake imake:notall USE_XORG= ice sm x11 xaw xext xmu xt xpm PKGINSTALL= ${WRKDIR}/pkg-install PKGDEINSTALL= ${WRKDIR}/pkg-deinstall PLIST_SUB= LOCALBASE=${LOCALBASE} -XMKMF= xmkmf .if defined(PACKAGE_BUILDING) SCRIPTS_ENV= PACKAGE_BUILDING=${PACKAGE_BUILDING} .else diff --git a/security/xspy/Makefile b/security/xspy/Makefile index d840855..6ef6851 100644 --- a/security/xspy/Makefile +++ b/security/xspy/Makefile @@ -11,9 +11,8 @@ MAINTAINER= onatan@gmail.com COMMENT= A utility for monitoring keystrokes on remote X servers WRKSRC= ${WRKDIR}/${PORTNAME} -USES= imake +USES= imake:notall USE_XORG= x11 -XMKMF= xmkmf ALL_TARGET= xspy diff --git a/x11-clocks/mouseclock/Makefile b/x11-clocks/mouseclock/Makefile index 416880f..2ddfc19 100644 --- a/x11-clocks/mouseclock/Makefile +++ b/x11-clocks/mouseclock/Makefile @@ -3,7 +3,7 @@ PORTNAME= mouseclock PORTVERSION= 1.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= x11-clocks MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= X11/clocks @@ -11,13 +11,8 @@ MASTER_SITE_SUBDIR= X11/clocks MAINTAINER= ports@FreeBSD.org COMMENT= Display the current time using the X root cursor -USES= imake -USE_GMAKE= yes -USE_XORG= x11 xext -NO_INSTALL_MANPAGES= yes - -post-configure: - @${TOUCH} ${WRKSRC}/mouseclock.man +USES= imake:notall +USE_XORG= x11 post-install: .if !defined(NOPORTDOCS) diff --git a/x11-clocks/mouseclock/files/patch-Imakefile b/x11-clocks/mouseclock/files/patch-Imakefile new file mode 100644 index 0000000..f380fd0 --- /dev/null +++ b/x11-clocks/mouseclock/files/patch-Imakefile @@ -0,0 +1,23 @@ +--- Imakefile.orig 1996-05-05 18:51:27.000000000 +0200 ++++ Imakefile 2013-09-01 17:04:26.000000000 +0200 +@@ -1,16 +1,10 @@ + +-#define IHaveSubdirs +-#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' ++OBJS = mouseclock.o ++SRCS = mouseclock.c ++SYS_LIBRARIES = $(XONLYLIB) + +- DEPLIBS = $(DEPXLIB) +-LOCAL_LIBRARIES = $(XLIB) +- CDEBUGFLAGS = +- CCOPTIONS = -O3 -s -pipe -Wall + +-AllTarget(mouseclock) +- +-MakeMakeSubdirs($(SUBDIRS),install) +-SimpleProgramTarget(mouseclock) ++ComplexProgramTargetNoMan(mouseclock) + + arc : clean + (cd .. ; tar zcvf mouseclock.tar.gz mouseclock) diff --git a/x11-wm/fvwm/Makefile b/x11-wm/fvwm/Makefile index 0294efb..5cc6bae 100644 --- a/x11-wm/fvwm/Makefile +++ b/x11-wm/fvwm/Makefile @@ -3,7 +3,7 @@ PORTNAME= fvwm PORTVERSION= 1.24r -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= x11-wm MASTER_SITES= ftp://ftp.fvwm.org/pub/fvwm/version-1/ @@ -11,17 +11,16 @@ MAINTAINER= dinoex@FreeBSD.org COMMENT= The fvwm window manager NO_LATEST_LINK= yes -MAKE_JOBS_UNSAFE= yes USES= imake USE_XORG= xbitmaps xpm xext x11 xmu -ALL_TARGET= Makefiles all MAN1= FvwmAudio.1 FvwmAuto.1 FvwmBacker.1 FvwmBanner.1 FvwmClean.1 \ FvwmDebug.1 FvwmIconBox.1 FvwmIdent.1 FvwmPager.1 FvwmSave.1 \ FvwmSaveDesk.1 FvwmScroll.1 FvwmWinList.1 GoodStuff.1 fvwm.1 \ xpmroot.1 pre-configure: + @${REINPLACE_CMD} -e '/DependSubdirs/y,/*#, ,' ${WRKSRC}/Imakefile ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ ${WRKSRC}/configure.h \ ${WRKSRC}/sample.fvwmrc/system.fvwmrc diff --git a/x11/xgrab/Makefile b/x11/xgrab/Makefile index 7cc45a8..667c49c 100644 --- a/x11/xgrab/Makefile +++ b/x11/xgrab/Makefile @@ -15,13 +15,11 @@ COMMENT= X11 image grabber BUILD_DEPENDS= xrdb:${PORTSDIR}/x11/xrdb -USES= display:build imake +USES= display:build imake:notall USE_XORG= x11 MAKE_FLAGS= BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/man/man1 \ XAPPLOADDIR=${PREFIX}/lib/X11/app-defaults -f -# "make depend" blows up -XMKMF= xmkmf CFLAGS+= -Wno-error=return-type MAN1= xgrab.1 xgrabsc.1 diff --git a/x11/xxkb/Makefile b/x11/xxkb/Makefile index 87aab5d..45f7a7c 100644 --- a/x11/xxkb/Makefile +++ b/x11/xxkb/Makefile @@ -25,7 +25,7 @@ OPTIONS_DEFINE= LIBRSVG2 DOCS .if ${PORT_OPTIONS:MLIBRSVG2} LIB_DEPENDS= rsvg-2:${PORTSDIR}/graphics/librsvg2 -XMKMF= xmkmf -a -DWITH_SVG_SUPPORT +XMKMF_ARGS= -DWITH_SVG_SUPPORT .endif post-build: |