1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/security/openssh-askpass/files/Makefile.in
Brooks Davis 9b1a5c1c07 Additional builds with with src r354909 applied.
The referenced change made NO_INSTALLLIB, NO_MAN, and NO_PROFILE into
errors causing these ports that declare them and use the FreeBSD make
infrastructure as part of their build to fail.

When the offending variables occur in a BSD Makefile, NO_MAN becomes
MAN= and NO_INSTALLLIB and NO_PROFILE become MK_INSTALLLIB=no and
MK_PROFILE=no respectively.  When declared in the environment they
become WITHOUT_<FOO>.

Also GC NO_MANCOMPRESSED which doesn't do anything.

In the case of devel/libpasori, this change accomplished the same thing
as the change in r518434, but more directly (fix the Makefiles rather
than patching them after they are installed).
2019-12-20 23:24:40 +00:00

50 lines
1.0 KiB
Makefile

# $FreeBSD$
PREFIX?= /usr/local
LOCALBASE?= /usr/local
BINDIR?= ${PREFIX}/bin
MANDIR?= ${PREFIX}/man/man
CLASS= SshAskpass
FILES= ${CLASS}
FILESDIR?= ${PREFIX}/lib/X11/app-defaults
PROG= x11-ssh-askpass
SRCS= drawing.c dynlist.c resources.c x11-ssh-askpass.c
LDADD= -lXt -lX11 -lSM -lICE -L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib
CFLAGS+=-I${LOCALBASE}/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO
MAN= ${PROG}.1
x11-ssh-askpass.o: ${CLASS}_ad.h
${PROG}.1: x11-ssh-askpass.man.in
sed -e 's|@NAME@|${PROG}|' \
-e 's|@DATE@|September 17, 2001|'\
-e 's|@VERSION@|1.2.4.1|'\
< $? > $@
${CLASS}: ${CLASS}.ad
cp $? $@
${CLASS}.ad: ${CLASS}-default.ad
cp $? $@
${CLASS}_ad.h: ${CLASS}.ad
sed -n '/^[^!]/s/.*/"&",/p' < $? > $@ || (rm -f $@; false)
${PROG}: ${CLASS}_ad.h
CLEANFILES+= ${CLASS}_ad.h
ssh-askpass: ${PROG}
ln -s -f $? $@
beforeinstall:
mkdir -p ${DESTDIR}${FILESDIR}
afterinstall:
ln -s -f ${PROG} ${DESTDIR}${BINDIR}/ssh-askpass
ln -s -f ${PROG}.1 ${DESTDIR}${MANDIR}1/ssh-askpass.1
.include <bsd.prog.mk>