matthieu wants to scrape imake off xenocara
initial port, to be worked in-tree (no need for autoconf to discover we have mkstemp...)
This commit is contained in:
parent
75d9505a29
commit
2398ba661a
26
devel/imake/Makefile
Normal file
26
devel/imake/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/09/02 14:14:02 espie Exp $
|
||||
|
||||
COMMENT = makefile generator
|
||||
CATEGORIES = devel x11
|
||||
DISTNAME = imake-1.0.5
|
||||
MASTER_SITES = http://cgit.freedesktop.org/xorg/util/imake/snapshot/
|
||||
|
||||
PERMIT_DISTFILES_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
|
||||
do-configure:
|
||||
ln -sf ${FILESDIR}/Makefile ${WRKSRC}
|
||||
echo "#define HAVE_MKSTEMP" >${WRKSRC}/config.h
|
||||
|
||||
MAKE_FLAGS = XCONFDIR=${LOCALBASE}/lib/X11/config \
|
||||
CPP_PROGRAM=/usr/bin/cpp
|
||||
|
||||
FAKE_FLAGS = INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
|
||||
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
|
||||
INSTALL_MAN="${INSTALL_MAN}"
|
||||
|
||||
RUN_DEPENDS = devel/imake-cf
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/imake/distinfo
Normal file
2
devel/imake/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (imake-1.0.5.tar.gz) = /WTw4SSmqGzqoAKY0hV1Y8MkeEd0+vHv0ndsKYmbTS0=
|
||||
SIZE (imake-1.0.5.tar.gz) = 42351
|
54
devel/imake/files/Makefile
Normal file
54
devel/imake/files/Makefile
Normal file
@ -0,0 +1,54 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/09/02 14:14:02 espie Exp $
|
||||
|
||||
CFLAGS += -DCPP_PROGRAM=\"${CPP_PROGRAM}\"
|
||||
CFLAGS += -I${X11BASE}/include
|
||||
|
||||
PROGS = imake revpath
|
||||
|
||||
SCRIPTS = xmkmf ccmakedep mergelib mkhtmlindex mkdirhier cleanlinks makeg
|
||||
MANS = ccmakedep.1 imake.1 mergelib.1 mkhtmlindex.1 xmkmf.1 cleanlinks.1 \
|
||||
makeg.1 mkdirhier.1 revpath.1
|
||||
|
||||
all: ${PROGS} ${SCRIPTS} ${MANS}
|
||||
|
||||
install:
|
||||
.for p in ${PROGS}
|
||||
${INSTALL_PROGRAM} $p ${PREFIX}/bin
|
||||
.endfor
|
||||
.for s in ${SCRIPTS}
|
||||
${INSTALL_SCRIPT} $s ${PREFIX}/bin
|
||||
.endfor
|
||||
.for m in ${MANS}
|
||||
${INSTALL_MAN} $m ${PREFIX}/man/man1
|
||||
.endfor
|
||||
|
||||
SUBSTS += -e 's|__xorgversion__|"imake 1.0.5" "X Version 11"|'
|
||||
SUBSTS += -e 's|__vendorversion__|"imake 1.0.5" "X Version 11"|'
|
||||
SUBSTS += -e 's|__cpp__|${CPP_PROGRAM}|'
|
||||
|
||||
CPPSUBSTS += -DCONFIGDIRSPEC='"-I$(XCONFDIR)"'
|
||||
CPPSUBSTS += -DCCPP='gcc -E'
|
||||
CPPSUBSTS += -DARCMD='ar clq'
|
||||
CPPSUBSTS += -DRANLIB=ranlib
|
||||
imake: imake.o
|
||||
${CC} -o $@ ${CFLAGS} imake.o
|
||||
|
||||
revpath: revpath.o
|
||||
${CC} -o $@ ${CFLAGS} revpath.o
|
||||
|
||||
ccmakedep.cpp: mdepend.cpp
|
||||
ln -f mdepend.cpp $@
|
||||
|
||||
mkhtmlindex: mkhtmlindex.pl
|
||||
ln -f mkhtmlindex.pl $@
|
||||
|
||||
.SUFFIXES: .cpp .man .1
|
||||
|
||||
.cpp:
|
||||
${CPP_PROGRAM} ${CPPSUBSTS} < $*.cpp | \
|
||||
sed -e /^\#/d | sed -e s/XCOMM/\#/ >$@
|
||||
|
||||
.man.1:
|
||||
sed ${SUBSTS} <$*.man >$*.1
|
||||
|
||||
.PHONY: all
|
5
devel/imake/pkg/DESCR
Normal file
5
devel/imake/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
imake is the old historic makefile generation tool used by the X window
|
||||
server. It basically relies on preprocessing imakefiles through cpp,
|
||||
and using a bit of sed to handle various comments.
|
||||
|
||||
imake is also infamous for abusing makefile :: rules.
|
19
devel/imake/pkg/PLIST
Normal file
19
devel/imake/pkg/PLIST
Normal file
@ -0,0 +1,19 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/09/02 14:14:02 espie Exp $
|
||||
bin/ccmakedep
|
||||
bin/cleanlinks
|
||||
@bin bin/imake
|
||||
bin/makeg
|
||||
bin/mergelib
|
||||
bin/mkdirhier
|
||||
bin/mkhtmlindex
|
||||
@bin bin/revpath
|
||||
bin/xmkmf
|
||||
@man man/man1/ccmakedep.1
|
||||
@man man/man1/cleanlinks.1
|
||||
@man man/man1/imake.1
|
||||
@man man/man1/makeg.1
|
||||
@man man/man1/mergelib.1
|
||||
@man man/man1/mkdirhier.1
|
||||
@man man/man1/mkhtmlindex.1
|
||||
@man man/man1/revpath.1
|
||||
@man man/man1/xmkmf.1
|
Loading…
Reference in New Issue
Block a user