doc/en_US.ISO8859-1/htdocs/gnome/docs/example-Makefile.sgml
Gabor Kovesdan 6f0813b25d - For non-English pages generate the enbase entity, as well, not just base
- Remove inline declarations of base and enbase entities since they
  are generated automatically in autogen.ent

Approved by:	doceng (implicit)
2012-08-13 14:22:30 +00:00

72 lines
2.2 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//FreeBSD//DTD XHTML 1.0 Transitional-Based Extension//EN"
"http://www.FreeBSD.org/XML/doc/share/sgml/xhtml10-freebsd.dtd" [
<!ENTITY title "FreeBSD GNOME Project: Example GNOME Makefile">
<!ENTITY email "freebsd-gnome">
]>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&title;</title>
<cvs:keyword xmlns:cvs="http://www.FreeBSD.org/XML/CVS">$FreeBSD$</cvs:keyword>
</head>
<body class="navinclude.gnome">
<p>The following is an example Makefile for a FreeBSD GNOME port.</p>
<pre>
# New ports collection makefile for: gnomeapp
# Date created: 27 December 2003
# Whom: Some GNOME User &lt;&email;@FreeBSD.org&gt;
#
# $FreeBSD$
#
# For this example, assume there was already a gnomeapp in the tree, and that this
# is the GTK+-2 version (i.e. gnomeapp2 versus gnomeapp).
PORTname= gnomeapp2
PORTVERSION= &gnomever;.2
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2//}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
DISTname= ${PORTNAME:S/2//}-${PORTVERSION}
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= A GNOME app that does some stuff
USE_BZIP2= yes
GNU_CONFIGURE= yes # NOTE: if the port needs ltverhack, this must be
USE_AUTOTOOLS="libtool":15
USE_GMAKE= yes # same with GNU make
# This is for i18n:
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_GNOME= gnomehack gtk20
# This application can dock in the GNOME panel, or it can not.
# But there's no need to build support for it if the GNOME panel
# libraries are not installed, so only build GNOME panel support
# if the gnomepanel port is already installed.
WANT_GNOME= yes
.include &lt;bsd.port.pre.mk&gt;
.if ${HAVE_GNOME:Mgnomepanel}!=""
USE_GNOME+= gnomepanel
CONFIGURE_ARGS+= --with-gnome
PKGNAMESUFFIX= -gnome
.else
CONFIGURE_ARGS+= --without-gnome
.endif
# Given all the above code, the package name is either "gnomeapp2-gnome-&gnomever;.2" or
# "gnomeapp2-&gnomever;.2", depending upon whether you want gnomepanel support. The downloaded
# distfile will be "gnomeapp-&gnomever;.2.tar.bz2."
.include &lt;bsd.port.post.mk&gt;
</pre>
</body>
</html>