Skip to content

Commit

Permalink
Add hunspell script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexpux committed Oct 17, 2013
1 parent 18b3d4d commit c46026a
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 0 deletions.
1 change: 1 addition & 0 deletions package_order.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ PACKAGES=(
)
$( [[ $BUILD_EXTRA_STUFF == yes && $STATIC_DEPS == no ]] \
&& echo "nasm \
hunspell \
libjpeg-turbo \
giflib \
jbigkit \
Expand Down
107 changes: 107 additions & 0 deletions scenarios/hunspell.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
#!/bin/bash

#
# The BSD 3-Clause License. http://www.opensource.org/licenses/BSD-3-Clause
#
# This file is part of 'Qt-builds' project.
# Copyright (c) 2013 by Alexpux (alexpux@gmail.com)
# All rights reserved.
#
# Project: Qt-builds ( https://github.com/Alexpux/Qt-builds )
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# - Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# - Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the distribution.
# - Neither the name of the 'Qt-builds' nor the names of its contributors may
# be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

# **************************************************************************

P=hunspell
P_V=${P}-${HUNSPELL_VERSION}
EXT=".tar.gz"
SRC_FILE="${P_V}${EXT}"
URL=http://download.sourceforge.net/${P}/${SRC_FILE}
DEPENDS=()

src_download() {
func_download $P_V $EXT $URL
}

src_unpack() {
func_uncompress $P_V $EXT
}

src_patch() {
local _patches=(
)

func_apply_patches \
$P_V \
_patches[@]
}

src_configure() {
local _conf_flags=(
--prefix=${PREFIX}
--build=${HOST}
--host=${HOST}
#--target=${HOST}
${LNKDEPS}
--disable-rpath
--enable-threads=win32
--with-ui
--with-readline
CFLAGS="\"${HOST_CFLAGS} -I${PREFIX}/include/ncursesw\""
CXXFLAGS="\"${HOST_CFLAGS} -I${PREFIX}/include/ncursesw\""
LDFLAGS="\"${HOST_LDFLAGS}\""
CPPFLAGS="\"${HOST_CPPFLAGS}\""
)
local _allconf="${_conf_flags[@]}"
func_configure $P_V $P_V "$_allconf"
}

pkg_build() {
local _make_flags=(
${MAKE_OPTS}
)
local _allmake="${_make_flags[@]}"
func_make \
${P_V} \
"/bin/make" \
"$_allmake" \
"building..." \
"built"
}

pkg_install() {
local _install_flags=(
${MAKE_OPTS}
install
)
local _allinstall="${_install_flags[@]}"
func_make \
${P_V} \
"/bin/make" \
"$_allinstall" \
"installing..." \
"installed"
}
1 change: 1 addition & 0 deletions versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export FREETYPE_VERSION="2.5.0.1"
export GIFLIB_VERSION="4.2.3"
export GETTEXT_VERSION="0.18.3.1"
export GPERF_VERSION="3.0.4"
export HUNSPELL_VERSION="1.3.2"
export ICU_VERSION="51.2"
export JBIGKIT_VERSION="2.0"
export LCMS2_VERSION="2.5"
Expand Down

0 comments on commit c46026a

Please sign in to comment.