Apply a couple changes to improve the validity of the Makefile.

Changes submitted by:	marcus
This commit is contained in:
Adam Weinberger 2003-12-28 04:35:43 +00:00
parent e2d3b7fdde
commit 4636749418
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=19314

View file

@ -1,6 +1,6 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" [
<!ENTITY base CDATA "../..">
<!ENTITY date "$FreeBSD$">
<!ENTITY date "$FreeBSD: www/en/gnome/docs/example-Makefile.sgml,v 1.1 2003/12/28 03:06:00 adamw Exp $">
<!ENTITY title "FreeBSD GNOME Project: Example GNOME Makefile">
<!ENTITY % gnomeincludes SYSTEM "../includes.sgml"> %gnomeincludes;
<!ENTITY % includes SYSTEM "../../includes.sgml"> %includes;
@ -16,10 +16,10 @@
# Date created: 27 December 2003
# Whom: Some GNOME User &lt;&email;@FreeBSD.org&gt;
#
# $FreeBSD$
# $FreeBSD: www/en/gnome/docs/example-Makefile.sgml,v 1.1 2003/12/28 03:06:00 adamw Exp $
#
# For this example assume there was already a gnomeapp in the tree, and this
# 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
@ -28,7 +28,7 @@ MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2//}/&gnomever;
DISTNAME= ${PORTNAME:S/2//}-${PORTVERSION}
DIST_SUBDIR= gnome2
MAINTAINER= &email;@FreeBSD.org
MAINTAINER= gnome@FreeBSD.org
COMMENT= A GNOME app that does some stuff
USE_BZIP2= yes
@ -37,8 +37,8 @@ GNU_CONFIGURE= yes # most GNOME apps need GNU configure
USE_GMAKE= yes # same with GNU make
# This is for i18n:
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
USE_GNOME= gnomehack gnomeprefix gnometarget lthack gtk20
LDFLAGS="-L${LOCALBASE}/lib"
USE_GNOME= gnomehack gnometarget lthack 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
@ -49,18 +49,18 @@ WANT_GNOME= yes
.include &lt;bsd.port.pre.mk&gt;
.if ${HAVE_GNOME:Mgnomepanel}!=""
USE_GNOME+= gnomepanel
CONFIGURE_ARGS+= --with-gnome
PKGNAMESUFFIX= -gnome
USE_GNOME+= gnomepanel
CONFIGURE_ARGS+= --with-gnome
PKGNAMESUFFIX= -gnome
.else
CONFIGURE_ARGS+= --without-gnome
CONFIGURE_ARGS+= --without-gnome
.endif
.include &lt;bsd.port.post.mk&gt;
# Given all the above code, the package name is either "gnomeapp2-&gnomever;.2-gnome" 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>
&footer;