Skip to content

Commit

Permalink
Some tweaks:
Browse files Browse the repository at this point in the history
* Include contao/Makefile.common from contao/Makefile.example.
* Add code some fragment tward to Contao 3.0 support.
* Add CT_VERBASE to use COMMENT.
* Use CT_FILES to Contao's files directory name.
  • Loading branch information
taca committed Oct 1, 2012
1 parent a64cb0d commit 4c2fbd8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
12 changes: 9 additions & 3 deletions www/contao/Makefile.common
@@ -1,22 +1,28 @@
# $NetBSD: Makefile.common,v 1.19 2012/07/26 03:06:05 taca Exp $ # $NetBSD: Makefile.common,v 1.20 2012/10/01 15:31:00 taca Exp $
# #
# used by www/contao/Makefile.example"
# used by www/contao211/Makefile # used by www/contao211/Makefile
# used by www/contao211-example/Makefile
# used by www/contao211-translations/Makefile # used by www/contao211-translations/Makefile
# #


# current release # current release
CT211_VERSION= 2.11.5 CT211_VERSION= 2.11.5
CT300_VERSION= 3.0.RC2


CT_VERS?= 211 CT_VERS?= 211


.if ${CT_VERS} == "211" .if ${CT_VERS} == "211"
CT_VERSION= ${CT211_VERSION} CT_VERSION= ${CT211_VERSION}
CT_FILES= tl_files
.elif ${CT_VERS} == "30"
CT_VERSION= ${CT300_VERSION}
CT_FILES= files
.else .else
.error "Illegal version specified: ${CT_VERS}" .error "Illegal version specified: ${CT_VERS}"
.endif .endif


CT_VER?= ${CT_VERSION:C/([0-9]+)\.([0-9]+)\..*/\1\2/} CT_VER= ${CT_VERSION:C/([0-9]+)\.([0-9]+)\..*/\1\2/}
CT_VERBASE= ${CT_VERSION:C/([0-9]+)\.([0-9]+)\..*/\1.\2/}
CT_PKGVER= ${CT_VERSION:S/.RC/rc/} CT_PKGVER= ${CT_VERSION:S/.RC/rc/}


FILES_SUBST+= PAX=${PAX} CT_EGDIR=${CT_EGDIR:Q} CT_WEBDIR=${CT_WEBDIR:Q} \ FILES_SUBST+= PAX=${PAX} CT_EGDIR=${CT_EGDIR:Q} CT_WEBDIR=${CT_WEBDIR:Q} \
Expand Down
10 changes: 6 additions & 4 deletions www/contao/Makefile.example
@@ -1,4 +1,4 @@
# $NetBSD: Makefile.example,v 1.7 2012/06/25 08:57:10 jperkin Exp $ # $NetBSD: Makefile.example,v 1.8 2012/10/01 15:31:00 taca Exp $
# #
# used by www/contao211-example/Makefile # used by www/contao211-example/Makefile
# #
Expand All @@ -10,7 +10,7 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=contao/}


MAINTAINER= taca@NetBSD.org MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://www.contao.org/ HOMEPAGE= http://www.contao.org/
COMMENT= Sample site data for Contao Open Source CMS COMMENT= Sample site data for Contao Open Source CMS ${CT_VERBASE}


DEPENDS+= contao${CT_VER}>=${CT_PKGVER}:../../www/contao${CT_VER} DEPENDS+= contao${CT_VER}>=${CT_PKGVER}:../../www/contao${CT_VER}


Expand All @@ -22,8 +22,10 @@ NO_CONFIGURE= yes


PKG_DESTDIR_SUPPORT= user-destdir PKG_DESTDIR_SUPPORT= user-destdir


WWW_EG_FILES?= tl_files/music_academy WWW_EG_FILES= ${CT_FILES}/music_academy
WWW_FILE?= templates/music_academy.sql WWW_FILE= templates/music_academy.sql

.include "../../www/contao/Makefile.common"


.for f in ${WWW_EG_FILES} ${WWW_FILE} .for f in ${WWW_EG_FILES} ${WWW_FILE}
EXTRACT_ELEMENTS+= ${DISTNAME}/${f} EXTRACT_ELEMENTS+= ${DISTNAME}/${f}
Expand Down
3 changes: 1 addition & 2 deletions www/contao211-example/Makefile
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1.1.1 2012/02/19 10:55:32 taca Exp $ # $NetBSD: Makefile,v 1.2 2012/10/01 15:31:00 taca Exp $
# #


DIST_SUBDIR= ${CT_DIST_SUBDIR} DIST_SUBDIR= ${CT_DIST_SUBDIR}
Expand All @@ -7,6 +7,5 @@ LICENSE= gnu-lgpl-v3
CT_VERS= 211 CT_VERS= 211


.include "../../www/contao/Makefile.example" .include "../../www/contao/Makefile.example"
.include "../../www/contao/Makefile.common"
.include "../../lang/php/phpversion.mk" .include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk" .include "../../mk/bsd.pkg.mk"

0 comments on commit 4c2fbd8

Please sign in to comment.