X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fpkg%2Flibmng;h=a904ef4242dd1be4a5af6b9ad4efafcc7e067bad;hb=39a19cacbb9a44c5ceadd254463ea87c588a82a3;hp=f161e60469ba45209d5ad4dcae3394d611ba8636;hpb=3dae4c554ec18f465eb6ee5e6efdbdbe8557e13c;p=hvlinux.git diff --git a/stage3/pkg/libmng b/stage3/pkg/libmng index f161e60..a904ef4 100644 --- a/stage3/pkg/libmng +++ b/stage3/pkg/libmng @@ -1,39 +1,23 @@ -#!/bin/sh -set -o errexit - -# First argument of this script is the package name - -# Reading system configuration informations, functions and package versions. -source ../sysinfos -source ../functions -source ../packages-list - -PACKAGE=${1} -shift -CONFIGURE_OPTS=${*} - -# Applying patches (if any) -apply_patches ${PACKAGE} - -cd ${LFS_TMP}/${PACKAGE} -cp makefiles/makefile.linux Makefile - -case "${HVL_TARGET}" in - "x86_64") - # -fPIC is required for x86_64 - sed -i -e "s!^CFLAGS=!CFLAGS=-fPIC !" Makefile - ;; -esac - -make prefix=/usr install - -# The documentation files are not installed by the installation procedure, -# so they are copied manually. -install -v -m644 doc/man/*.3 /usr/share/man/man3 -install -v -m644 doc/man/*.5 /usr/share/man/man5 -install -v -m755 -d /usr/share/doc/${PACKAGE} -install -v -m644 doc/*.{png,txt} /usr/share/doc/${PACKAGE} - -ldconfig - -exit $? +#!/bin/bash + +hvbuild() +{ + cd ${LFS_TMP}/${PACKAGE} + cp makefiles/makefile.linux Makefile + + case "${HVL_TARGET}" in + "x86_64") + # -fPIC is required for x86_64 + sed -i -e "s!^CFLAGS=!CFLAGS=-fPIC !" Makefile + ;; + esac + + make prefix=/usr install + + # The documentation files are not installed by the installation procedure, + # so they are copied manually. + install -v -m644 doc/man/*.3 /usr/share/man/man3 + install -v -m644 doc/man/*.5 /usr/share/man/man5 + install -v -m755 -d /usr/share/doc/${PACKAGE} + install -v -m644 doc/*.{png,txt} /usr/share/doc/${PACKAGE} +}