pkgsrc/editors/pico/Makefile
reed 5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00

77 lines
2.1 KiB
Makefile

# $NetBSD: Makefile,v 1.69 2006/04/06 06:21:58 reed Exp $
#
# NOTE:
# When updating, it is necessary to change the shlib version, located in
# several files in patches/. If you do not KNOW that the new version is
# backwards ABI compatible (usually not), bump the major version,
# and then bump the BUILDLINK_API_DEPENDS in buildlink3.mk.
DISTNAME= pine4.64
PKGNAME= pico-4.10
PKGREVISION= 1
CATEGORIES= editors
MASTER_SITES= ftp://ftp.cac.washington.edu/pine/ \
ftp://ftp.fu-berlin.de/unix/mail/pine/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.washington.edu/pine/
COMMENT= Text editor (ships with Pine), and Pine's text editing lib
LICENSE= pine-license
USE_LIBTOOL= yes
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
BUILDNAME= osx
LIBS+= -lcurses
.elif ${OPSYS} == "IRIX"
. if ${OS_VERSION} >= 6.5
BUILDNAME= sg6
. else
BUILDNAME= sgi
. endif
.elif ${OPSYS} == "Interix"
BUILDNAME= sfu
.elif ${OPSYS} == "Linux"
BUILDNAME= lnx
.elif ${OPSYS} == "SunOS"
BUILDNAME= so5
.else
BUILDNAME= neb
.endif
MAKE_ENV+= _STRIPFLAG_INSTALL= # debug...
INSTALLATION_DIRS= bin lib ${PKGMANDIR}/man1
pre-patch:
.if ${OPSYS} == "Interix"
${CP} -f \
${WRKSRC}/pico/osdep/os-sol.h ${WRKSRC}/pico/osdep/os-sfu.h
${SED} -e 's,read.pol,read.sel,' \
${WRKSRC}/pico/osdep/os-sv4.ic >${WRKSRC}/pico/osdep/os-sfu.ic
.endif
${SED} -e 's,-ltermlib,-lcurses,g;s,sv4,sfu,g' \
${WRKSRC}/pico/makefile.sv4 >${WRKSRC}/pico/makefile.sfu
do-build:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./build ${BUILDNAME} \
CC="${LIBTOOL} ${CC}" \
PREFIX=${PREFIX} OPTIMIZE="${CFLAGS}" \
EXTRALDFLAGS="${LIBS}"
do-install:
${LIBTOOL} --mode=install ${INSTALL_LIB} \
${WRKSRC}/pico/libpico.la ${PREFIX}/lib
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
${WRKSRC}/pico/pico ${WRKSRC}/pico/pilot ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/pico.1 ${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/doc/pilot.1 ${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA_DIR} ${PREFIX}/include/pico
cd ${WRKSRC}/pico && ${INSTALL_DATA} *.h ${PREFIX}/include/pico
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"