summaryrefslogtreecommitdiff
path: root/afms
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-09-26 03:38:37 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-09-26 03:39:07 -0500
commit30dba8159557fcebbc7165752697783c2379c824 (patch)
treef742bb08cccc0eac1cdf5c0dec262d56ae0e1b94 /afms
parentf0eaba8c45f0db802268a3e3809292cd063c7544 (diff)
gbuildification of afms
Change-Id: I7ead3e90c9037289b917820c20f5265d5b080b47
Diffstat (limited to 'afms')
-rw-r--r--afms/Makefile7
-rw-r--r--afms/Module_afms.mk17
-rw-r--r--afms/UnpackedTarball_afms.mk14
-rw-r--r--afms/Zip_fontunxafm.mk64
-rw-r--r--afms/delzip0
-rw-r--r--afms/makefile.mk52
-rw-r--r--afms/prj/build.lst3
-rw-r--r--afms/prj/d.lst3
-rw-r--r--afms/prj/dmake0
9 files changed, 103 insertions, 57 deletions
diff --git a/afms/Makefile b/afms/Makefile
new file mode 100644
index 000000000000..ccb1c85a04da
--- /dev/null
+++ b/afms/Makefile
@@ -0,0 +1,7 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+
+module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
+
+include $(module_directory)/../solenv/gbuild/partial_build.mk
+
+# vim: set noet sw=4 ts=4:
diff --git a/afms/Module_afms.mk b/afms/Module_afms.mk
new file mode 100644
index 000000000000..ee04aa9de651
--- /dev/null
+++ b/afms/Module_afms.mk
@@ -0,0 +1,17 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Module_Module,afms))
+
+$(eval $(call gb_Module_add_targets,afms,\
+ UnpackedTarball_afms \
+ Zip_fontunxafm \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/afms/UnpackedTarball_afms.mk b/afms/UnpackedTarball_afms.mk
new file mode 100644
index 000000000000..feed2f94853e
--- /dev/null
+++ b/afms/UnpackedTarball_afms.mk
@@ -0,0 +1,14 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UnpackedTarball_UnpackedTarball,afms))
+
+$(eval $(call gb_UnpackedTarball_set_tarball,afms,$(AFMS_TARBALL)))
+
+# vim: set noet sw=4 ts=4:
diff --git a/afms/Zip_fontunxafm.mk b/afms/Zip_fontunxafm.mk
new file mode 100644
index 000000000000..699c1491197f
--- /dev/null
+++ b/afms/Zip_fontunxafm.mk
@@ -0,0 +1,64 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+# Version: MPL 1.1 / GPLv3+ / LGPLv3+
+#
+# The contents of this file are subject to the Mozilla Public License Version
+# 1.1 (the "License"); you may not use this file except in compliance with
+# the License or as specified alternatively below. You may obtain a copy of
+# the License at http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+# for the specific language governing rights and limitations under the
+# License.
+#
+# Major Contributor(s):
+# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
+# (initial developer)
+#
+# All Rights Reserved.
+#
+# For minor contributions see the git repository.
+#
+# Alternatively, the contents of this file may be used under the terms of
+# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
+# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
+# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+# instead of those above.
+
+$(eval $(call gb_Zip_Zip,fontunxafm,$(call gb_UnpackedTarball_get_dir,afms)))
+
+$(eval $(call gb_Zip_add_files,fontunxafm,\
+ Courier-Bold.afm \
+ Courier-BoldOblique.afm \
+ Courier-Oblique.afm \
+ Courier.afm \
+ Helvetica-Bold.afm \
+ Helvetica-BoldOblique.afm \
+ Helvetica-Oblique.afm \
+ Helvetica.afm \
+ ITCAvantGarde-Book.afm \
+ ITCAvantGarde-BookOblique.afm \
+ ITCAvantGarde-Demi.afm \
+ ITCAvantGarde-DemiOblique.afm \
+ ITCBookman-Demi.afm \
+ ITCBookman-DemiItalic.afm \
+ ITCBookman-Light.afm \
+ ITCBookman-LightItalic.afm \
+ ITCZapfChancery-MediumItalic.afm \
+ NewCenturySchlbk-Bold.afm \
+ NewCenturySchlbk-BoldItalic.afm \
+ NewCenturySchlbk-Italic.afm \
+ NewCenturySchlbk-Roman.afm \
+ Palatino-Bold.afm \
+ Palatino-BoldItalic.afm \
+ Palatino-Italic.afm \
+ Palatino-Roman.afm \
+ Symbol.afm \
+ Times-Bold.afm \
+ Times-BoldItalic.afm \
+ Times-Italic.afm \
+ Times-Roman.afm \
+ ZapfDingbats.afm \
+))
+
+# vim: set shiftwidth=4 tabstop=4 noexpandtab:
diff --git a/afms/delzip b/afms/delzip
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/afms/delzip
+++ /dev/null
diff --git a/afms/makefile.mk b/afms/makefile.mk
deleted file mode 100644
index be129cb1ff5f..000000000000
--- a/afms/makefile.mk
+++ /dev/null
@@ -1,52 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ=.
-
-PRJNAME=afms
-TARGET=afms
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-.IF "$(L10N_framework)"==""
-# --- Files --------------------------------------------------------
-
-TARFILE_NAME=Adobe-Core35_AFMs-314
-TARFILE_MD5=1756c4fa6c616ae15973c104cd8cb256
-TARFILE_ROOTDIR=Adobe-Core35_AFMs-314
-
-# --- Targets ------------------------------------------------------
-
-.INCLUDE : set_ext.mk
-
-ZIP1DIR = $(MISC)$/build$/$(TARFILE_NAME)
-ZIP1TARGET = fontunxafm
-ZIP1LIST = *.afm -x "*Helvetica-Narrow*"
-
-.ENDIF # L10N_framework
-.INCLUDE : target.mk
-
-.INCLUDE : tg_ext.mk
-.IF "$(L10N_framework)"==""
-.IF "$(ZIP1TARGETN)"!=""
-$(ZIP1TARGETN): $(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE)
-
-.ENDIF # "$(ZIP1TARGETN)"!=""
-
-.ENDIF # L10N_framework
diff --git a/afms/prj/build.lst b/afms/prj/build.lst
index ed3d01fd2909..554677b9a54a 100644
--- a/afms/prj/build.lst
+++ b/afms/prj/build.lst
@@ -1,3 +1,2 @@
af afms : solenv NULL
-af afms usr1 - all af_mkout NULL
-af afms nmake - all af_fonts NULL
+af afms\prj nmake - all afms_prj NULL
diff --git a/afms/prj/d.lst b/afms/prj/d.lst
index 1652d1f97cb5..e69de29bb2d1 100644
--- a/afms/prj/d.lst
+++ b/afms/prj/d.lst
@@ -1,3 +0,0 @@
-mkdir: %_DEST%\pck
-..\%__SRC%\bin\*.zip %_DEST%\pck\*.zip
-
diff --git a/afms/prj/dmake b/afms/prj/dmake
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/afms/prj/dmake
+++ /dev/null