head	1.12;
access;
symbols
	pkgsrc-2013Q2:1.12.0.32
	pkgsrc-2013Q2-base:1.12
	pkgsrc-2012Q4:1.12.0.30
	pkgsrc-2012Q4-base:1.12
	pkgsrc-2011Q4:1.12.0.28
	pkgsrc-2011Q4-base:1.12
	pkgsrc-2011Q2:1.12.0.26
	pkgsrc-2011Q2-base:1.12
	pkgsrc-2009Q4:1.12.0.24
	pkgsrc-2009Q4-base:1.12
	pkgsrc-2008Q4:1.12.0.22
	pkgsrc-2008Q4-base:1.12
	pkgsrc-2008Q3:1.12.0.20
	pkgsrc-2008Q3-base:1.12
	cube-native-xorg:1.12.0.18
	cube-native-xorg-base:1.12
	pkgsrc-2008Q2:1.12.0.16
	pkgsrc-2008Q2-base:1.12
	pkgsrc-2008Q1:1.12.0.14
	pkgsrc-2008Q1-base:1.12
	pkgsrc-2007Q4:1.12.0.12
	pkgsrc-2007Q4-base:1.12
	pkgsrc-2007Q3:1.12.0.10
	pkgsrc-2007Q3-base:1.12
	pkgsrc-2007Q2:1.12.0.8
	pkgsrc-2007Q2-base:1.12
	pkgsrc-2007Q1:1.12.0.6
	pkgsrc-2007Q1-base:1.12
	pkgsrc-2006Q4:1.12.0.4
	pkgsrc-2006Q4-base:1.12
	pkgsrc-2006Q3:1.12.0.2
	pkgsrc-2006Q3-base:1.12
	pkgsrc-2006Q2:1.11.0.4
	pkgsrc-2006Q2-base:1.11
	pkgsrc-2006Q1:1.11.0.2
	pkgsrc-2006Q1-base:1.11
	pkgsrc-2005Q4:1.10.0.2
	pkgsrc-2005Q4-base:1.10
	pkgsrc-2005Q3:1.9.0.4
	pkgsrc-2005Q3-base:1.9
	pkgsrc-2005Q2:1.9.0.2
	pkgsrc-2005Q2-base:1.9
	pkgsrc-2005Q1:1.6.0.2
	pkgsrc-2005Q1-base:1.6
	pkgsrc-2004Q4:1.5.0.2
	pkgsrc-2004Q4-base:1.5
	pkgsrc-2004Q3:1.4.0.2
	pkgsrc-2004Q3-base:1.4
	pkgsrc-2004Q2:1.3.0.4
	pkgsrc-2004Q2-base:1.3
	pkgsrc-2004Q1:1.3.0.2
	pkgsrc-2004Q1-base:1.3;
locks; strict;
comment	@# @;


1.12
date	2006.08.10.03.45.32;	author minskim;	state dead;
branches;
next	1.11;

1.11
date	2005.12.29.06.22.07;	author jlam;	state Exp;
branches;
next	1.10;

1.10
date	2005.12.05.20.50.54;	author rillig;	state Exp;
branches;
next	1.9;

1.9
date	2005.06.01.18.03.20;	author jlam;	state Exp;
branches;
next	1.8;

1.8
date	2005.05.22.20.08.29;	author jlam;	state Exp;
branches;
next	1.7;

1.7
date	2005.04.11.21.47.09;	author tv;	state Exp;
branches;
next	1.6;

1.6
date	2005.02.04.01.48.51;	author minskim;	state Exp;
branches;
next	1.5;

1.5
date	2004.12.03.15.15.07;	author wiz;	state Exp;
branches;
next	1.4;

1.4
date	2004.06.27.13.31.14;	author grant;	state Exp;
branches;
next	1.3;

1.3
date	2004.03.05.08.30.12;	author tron;	state Exp;
branches;
next	1.2;

1.2
date	2004.01.24.14.58.00;	author grant;	state Exp;
branches;
next	1.1;

1.1
date	2003.12.24.12.51.31;	author jmmv;	state Exp;
branches;
next	;


desc
@@


1.12
log
@Remove teTeX2.
@
text
@# $NetBSD: Makefile.common,v 1.11 2005/12/29 06:22:07 jlam Exp $

TETEX_BIN_VERS=		2.0.2
DIST_SUBDIR=		teTeX
BUILD_TARGET=		all
INSTALL_TARGET=		install strip

USE_TOOLS+=		gmake
USE_LANGUAGES=		c c++
CFLAGS+=		-Dunix

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--without-texinfo
CONFIGURE_ARGS+=	--without-dialog
CONFIGURE_ARGS+=	--disable-multiplatform
CONFIGURE_ARGS+=	--enable-ipc
CONFIGURE_ARGS+=	--with-epsfwin
CONFIGURE_ARGS+=	--with-hp2627win
CONFIGURE_ARGS+=	--with-mftalkwin
CONFIGURE_ARGS+=	--with-x11
CONFIGURE_ARGS+=	--with-system-wwwlib
CONFIGURE_ARGS+=	--with-libwww-config=${LOCALBASE}/bin/libwww-config
CONFIGURE_ARGS+=	--with-system-ncurses
CONFIGURE_ARGS+=	--with-ncurses-include=${BUILDLINK_PREFIX.ncurses}/include
CONFIGURE_ARGS+=	--with-ncurses-libdir=${BUILDLINK_PREFIX.ncurses}/lib
CONFIGURE_ARGS+=	--with-system-pnglib
CONFIGURE_ARGS+=	--with-pnglib-include=${BUILDLINK_PREFIX.png}/include
CONFIGURE_ARGS+=	--with-pnglib-libdir=${BUILDLINK_PREFIX.png}/lib
CONFIGURE_ARGS+=	--with-system-t1lib
CONFIGURE_ARGS+=	--with-t1lib-include=${BUILDLINK_PREFIX.t1lib}/include
CONFIGURE_ARGS+=	--with-t1lib-libdir=${BUILDLINK_PREFIX.t1lib}/lib
CONFIGURE_ARGS+=	--with-system-zlib
CONFIGURE_ARGS+=	--with-zlib-include=${BUILDLINK_PREFIX.zlib}/include
CONFIGURE_ARGS+=	--with-zlib-libdir=${BUILDLINK_PREFIX.zlib}/lib

.include "../../mk/bsd.prefs.mk"

.if defined(PAPERSIZE) && ${PAPERSIZE} != "A4"
CONFIGURE_ARGS+=	--disable-a4
.endif

.if ${OPSYS} != "SunOS"
CONFIGURE_ARGS+=	--enable-auto-core
.endif

CONFIGURE_ENV+=	INSTALL_PROGRAM=${INSTALL_PROGRAM:Q} \
		INSTALL_SCRIPT=${INSTALL_SCRIPT:Q} \
		INSTALL_DATA=${INSTALL_DATA:Q}

TEXFONTSDIR=		${VARBASE}/spool/texfonts
OWN_DIRS=		${TEXFONTSDIR}
OWN_DIRS_PERMS=		${TEXFONTSDIR}/pk ${ROOT_USER} ${ROOT_GROUP} 1777
OWN_DIRS_PERMS+=	${TEXFONTSDIR}/source ${ROOT_USER} ${ROOT_GROUP} 1777
OWN_DIRS_PERMS+=	${TEXFONTSDIR}/tfm ${ROOT_USER} ${ROOT_GROUP} 1777

.include "../../www/libwww/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../fonts/t1lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/x11.buildlink3.mk"
@


1.11
log
@Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.10 2005/12/05 20:50:54 rillig Exp $
@


1.10
log
@Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.9 2005/06/01 18:03:20 jlam Exp $
a9 1
USE_PKGINSTALL=		yes
@


1.9
log
@Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.8 2005/05/22 20:08:29 jlam Exp $
d47 3
a49 3
CONFIGURE_ENV+=	INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
		INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
		INSTALL_DATA="${INSTALL_DATA}"
@


1.8
log
@Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:

	USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.7 2005/04/11 21:47:09 tv Exp $
a10 1
USE_X11=		yes
d62 1
@


1.7
log
@Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.6 2005/02/04 01:48:51 minskim Exp $
d8 1
a8 1
USE_GNU_TOOLS+=		make
@


1.6
log
@Create font spool in VARBASE, not in /var.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.5 2004/12/03 15:15:07 wiz Exp $
a7 1
USE_BUILDLINK3=		yes
@


1.5
log
@Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs.
Suggested by Roland Illig, ok'd by various.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.4 2004/06/27 13:31:14 grant Exp $
d53 1
a53 1
TEXFONTSDIR=		/var/spool/texfonts
@


1.4
log
@this uses a c and c++ compiler.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.3 2004/03/05 08:30:12 tron Exp $
d5 1
a5 1
ALL_TARGET=		all
@


1.3
log
@Use buildlink3 framework.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.2 2004/01/24 14:58:00 grant Exp $
d10 1
@


1.2
log
@replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.1 2003/12/24 12:51:31 jmmv Exp $
d8 1
a8 1
USE_BUILDLINK2=		yes
d58 5
a62 5
.include "../../www/libwww/buildlink2.mk"
.include "../../graphics/png/buildlink2.mk"
.include "../../fonts/t1lib/buildlink2.mk"
.include "../../devel/zlib/buildlink2.mk"
.include "../../devel/ncurses/buildlink2.mk"
@


1.1
log
@Update teTeX packages to 2.0.2 (really merge teTeX2 into teTeX).  The 2.x
branch becomes the default teTeX package.
@
text
@d1 1
a1 1
# $NetBSD$
d9 1
a9 1
USE_GMAKE=		yes
@

