5305bb945d
- Move includes.nav*.sgml to share/sgml/navibar.ent and <lang>/share/sgml/navibar.l10n.ent. - Move includes.sgml and includes.xsl to share/sgml/common.ent, share/sgml/header.ent, <lang>/share/sgml/l10n.ent, and <lang>/share/sgml/header.l10n.ent. - Move most of XSLT libraries to share/sgml/*.xsl and <lang>/share/sgml/*.xsl. - Move news.xml and other *.xml files for the similar purpose to share/sgml/*.xml and <lang>/share/sgml/*.xml. - Switch to use a custom DTD for HTML document. Now we use "-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension", which is HTML 4.01 + some entities previously pulled via "<!ENTITY % includes SYSTEM "includes.sgml"> %includes;" line. The location of entity file will be resolved by using catalog file. - Add DOCTYPE declearation to XML documents. This makes the followings possible: * Use of &foo; entities for SGML in an XML file instead of defining {$foo} as the same content. * &symbolic; entities for Latin characters. - Duplicated information between SGML and XML, or English and translated doc, has been removed as much as possible.
78 lines
2.4 KiB
Text
78 lines
2.4 KiB
Text
<!--
|
|
The FreeBSD Russian Documentation Project
|
|
|
|
$FreeBSDru: frdp/www/ru/gnome/docs/example-Makefile.sgml,v 1.2 2004/09/21 07:31:07 den Exp $
|
|
|
|
Original revision: 1.3
|
|
-->
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension//EN" [
|
|
<!ENTITY base CDATA "../..">
|
|
<!ENTITY date "$FreeBSD: www/ru/gnome/docs/example-Makefile.sgml,v 1.3 2005/10/05 20:59:53 simon Exp $">
|
|
<!ENTITY title "ðÒÏÅËÔ FreeBSD GNOME: ðÒÉÍÅÒÎÙÊ Makefile ÄÌÑ GNOME">
|
|
<!ENTITY % navinclude.developers "INCLUDE">
|
|
<!ENTITY % gnomeincludes SYSTEM "../includes.sgml"> %gnomeincludes;
|
|
]>
|
|
|
|
<html>
|
|
&header;
|
|
|
|
<p>äÁÌÅÅ ÐÒÉ×ÏÄÉÔÓÑ ÐÒÉÍÅÒÎÙÊ Makefile ÄÌÑ ÐÏÒÔÁ FreeBSD ÐÒÉÌÏÖÅÎÉÑ
|
|
GNOME.</p>
|
|
|
|
<pre>
|
|
# New ports collection makefile for: gnomeapp
|
|
# Date created: 27 December 2003
|
|
# Whom: Some GNOME User <&email;@FreeBSD.org>
|
|
#
|
|
# $FreeBSD: www/ru/gnome/docs/example-Makefile.sgml,v 1.3 2005/10/05 20:59:53 simon Exp $
|
|
#
|
|
|
|
# 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//}/&gnomever;
|
|
DISTNAME= ${PORTNAME:S/2//}-${PORTVERSION}
|
|
DIST_SUBDIR= gnome2
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
COMMENT= A GNOME app that does some stuff
|
|
|
|
USE_BZIP2= yes
|
|
USE_X_PREFIX= yes
|
|
USE_LIBTOOL= yes # many GNOME apps need libtool, and most need GNU configure
|
|
USE_GMAKE= yes # same with GNU make
|
|
# This is for i18n:
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
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
|
|
# libraries are not installed, so only build GNOME panel support
|
|
# if the gnomepanel port is already installed.
|
|
WANT_GNOME= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.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-&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 <bsd.port.post.mk>
|
|
</pre>
|
|
|
|
&footer;
|
|
|
|
</body>
|
|
</html>
|